web-routes-generics-0.1.0.1: portable, type-safe URL routing

Safe HaskellNone
LanguageHaskell98

Web.Routes.Generics

Documentation

class GToURL f where Source #

Instances
GToURL (U1 :: k -> Type) Source # 
Instance details

Defined in Web.Routes.Generics

GToURL f => GToURL (S1 c f :: k -> Type) Source # 
Instance details

Defined in Web.Routes.Generics

PathInfo a => GToURL (K1 i a :: k -> Type) Source # 
Instance details

Defined in Web.Routes.Generics

Methods

gtoPathSegments :: K1 i a a0 -> [Text] Source #

gfromPathSegments :: URLParser (K1 i a a0) Source #

GToURL f => GToURL (D1 c f :: k -> Type) Source # 
Instance details

Defined in Web.Routes.Generics

(GToURL f, GToURL g) => GToURL (f :*: g :: k -> Type) Source # 
Instance details

Defined in Web.Routes.Generics

Methods

gtoPathSegments :: (f :*: g) a -> [Text] Source #

gfromPathSegments :: URLParser ((f :*: g) a) Source #

(GToURL f, GToURL g) => GToURL (f :+: g :: k -> Type) Source # 
Instance details

Defined in Web.Routes.Generics

Methods

gtoPathSegments :: (f :+: g) a -> [Text] Source #

gfromPathSegments :: URLParser ((f :+: g) a) Source #

(Constructor c, GToURL f) => GToURL (C1 c f :: k -> Type) Source # 
Instance details

Defined in Web.Routes.Generics