Skip to content

tneisinger/sce-issue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo demonstrates how to use the servant-quickcheck and servant-checked-exceptions libraries together. In order to use both libraries, an instance of HasGenRequest (Throws err :> rest) needs to be defined. Here is simple way to define that instance:

instance (HasGenRequest rest) => HasGenRequest (Throws err :> rest) where
  genRequest _ = genRequest (Proxy :: Proxy rest)

Check out test/Spec.hs for more detail, or clone this repo and run stack test to verify that this works.

About

This repo demonstrates how to make servant-quickcheck and servant-checked-exceptions work together

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published