servant-benchmark-0.1.2.0: Generate benchmark files from a Servant API
Safe HaskellNone
LanguageHaskell2010

Servant.Benchmark.HasGenerator

Synopsis

Documentation

class HasGenerator api where Source #

HasGenerator provides combined type and value level interpretation of an API, producing corresponding Endpoint values.

Instructions on forming a Generator type can be found on the module documentation.

Methods

generate :: Proxy api -> Generator api -> IO [Endpoint] Source #

Instances

Instances details
HasEndpoint a => HasGenerator a Source # 
Instance details

Defined in Servant.Benchmark.HasGenerator

Methods

generate :: Proxy a -> Generator a -> IO [Endpoint] Source #

(HasEndpoint a, HasGenerator b) => HasGenerator (a :<|> b) Source # 
Instance details

Defined in Servant.Benchmark.HasGenerator

Methods

generate :: Proxy (a :<|> b) -> Generator (a :<|> b) -> IO [Endpoint] Source #