web-routes-quasi- Define data types and parse/build functions for web-routes via a quasi-quoted DSL




Quasi quoter

parseRoutes :: QuasiQuoterSource

A quasi-quoter to parse a string into a list of Resources. Checks for overlapping routes, failing if present; use parseRoutesNoCheck to skip the checking. See documentation site for details on syntax.

parseRoutesNoCheck :: QuasiQuoterSource

Same as parseRoutes, but performs no overlap checking.

Template haskell

Low level

createRender :: [THResource] -> Q [Clause]Source

Generates the set of clauses necesary to render the given Resources. See quasiRender.

createParse :: [THResource] -> Q [Clause]Source

Generates the set of clauses necesary to parse the given Resources. See quasiParse.

Type classes