ema-generics-0.10.0.0: Static site generator library with hot reload
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ema.Route.Generic.SubModel

Documentation

class HasSubRoutes r => HasSubModels r where Source #

Methods

subModels :: RouteModel r -> NP I (MultiModel (SubRoutes r)) Source #

Break the model into a list of sub-models used correspondingly by the sub-routes.

Instances

Instances details
(VerifyModels (RouteModel (GenericRoute r opts)) (MultiModel (SubRoutes (GenericRoute r opts))) (OptSubModels r opts), VerifyRoutes (RCode r) (SubRoutes (GenericRoute r opts)), GSubModels (RouteModel (GenericRoute r opts)) (MultiModel (OptSubRoutes r opts)) (OptSubModels r opts), HasSubRoutes (GenericRoute r opts), GenericRouteOpts r opts) => HasSubModels (GenericRoute r opts) Source # 
Instance details

Defined in Ema.Route.Generic

class GSubModels m (ms :: [Type]) (lookups :: [k]) where Source #

Methods

gsubModels :: m -> NP I ms Source #

Instances

Instances details
GSubModels m ('[] :: [Type]) ('[] :: [k]) Source # 
Instance details

Defined in Ema.Route.Generic.SubModel

Methods

gsubModels :: m -> NP I '[] Source #

(HasAny s m m t t, GSubModels m ms ss) => GSubModels m (t ': ms) (s ': ss :: [k]) Source # 
Instance details

Defined in Ema.Route.Generic.SubModel

Methods

gsubModels :: m -> NP I (t ': ms) Source #

Orphan instances

HasAny () s s () () Source # 
Instance details

Methods

the :: Lens s s () () #

HasAny sel s t a b => HasAny (Proxy sel :: Type) s t a b Source # 
Instance details

Methods

the :: Lens s t a b #