ema-0.10.0.0: Static site generator library with hot reload
Safe HaskellNone
LanguageHaskell2010

Ema.Route.Lib.Folder

Synopsis

Documentation

newtype FolderRoute (prefix :: Symbol) r Source #

A route that is prefixed at some URL prefix

Constructors

FolderRoute 

Fields

Instances

Instances details
Generic r => Generic (FolderRoute prefix r) Source # 
Instance details

Defined in Ema.Route.Lib.Folder

Associated Types

type Rep (FolderRoute prefix r) :: Type -> Type #

Methods

from :: FolderRoute prefix r -> Rep (FolderRoute prefix r) x #

to :: Rep (FolderRoute prefix r) x -> FolderRoute prefix r #

(Show r, KnownSymbol prefix) => Show (FolderRoute prefix r) Source # 
Instance details

Defined in Ema.Route.Lib.Folder

Methods

showsPrec :: Int -> FolderRoute prefix r -> ShowS #

show :: FolderRoute prefix r -> String #

showList :: [FolderRoute prefix r] -> ShowS #

(IsRoute r, KnownSymbol prefix) => IsRoute (FolderRoute prefix r) Source # 
Instance details

Defined in Ema.Route.Lib.Folder

Associated Types

type RouteModel (FolderRoute prefix r) Source #

(EmaStaticSite r, KnownSymbol prefix) => EmaSite (FolderRoute prefix r) Source # 
Instance details

Defined in Ema.Route.Lib.Folder

Associated Types

type SiteArg (FolderRoute prefix r) Source #

type SiteOutput (FolderRoute prefix r) Source #

Methods

siteInput :: (MonadIO m, MonadUnliftIO m, MonadLoggerIO m) => Some Action -> SiteArg (FolderRoute prefix r) -> m (Dynamic m (RouteModel (FolderRoute prefix r))) Source #

siteOutput :: (MonadIO m, MonadLoggerIO m) => Prism' FilePath (FolderRoute prefix r) -> RouteModel (FolderRoute prefix r) -> FolderRoute prefix r -> m (SiteOutput (FolderRoute prefix r)) Source #

Eq r => Eq (FolderRoute prefix r) Source # 
Instance details

Defined in Ema.Route.Lib.Folder

Methods

(==) :: FolderRoute prefix r -> FolderRoute prefix r -> Bool #

(/=) :: FolderRoute prefix r -> FolderRoute prefix r -> Bool #

Ord r => Ord (FolderRoute prefix r) Source # 
Instance details

Defined in Ema.Route.Lib.Folder

Methods

compare :: FolderRoute prefix r -> FolderRoute prefix r -> Ordering #

(<) :: FolderRoute prefix r -> FolderRoute prefix r -> Bool #

(<=) :: FolderRoute prefix r -> FolderRoute prefix r -> Bool #

(>) :: FolderRoute prefix r -> FolderRoute prefix r -> Bool #

(>=) :: FolderRoute prefix r -> FolderRoute prefix r -> Bool #

max :: FolderRoute prefix r -> FolderRoute prefix r -> FolderRoute prefix r #

min :: FolderRoute prefix r -> FolderRoute prefix r -> FolderRoute prefix r #

type Rep (FolderRoute prefix r) Source # 
Instance details

Defined in Ema.Route.Lib.Folder

type Rep (FolderRoute prefix r) = Rep r
type RouteModel (FolderRoute prefix r) Source # 
Instance details

Defined in Ema.Route.Lib.Folder

type RouteModel (FolderRoute prefix r) = RouteModel r
type SiteArg (FolderRoute prefix r) Source # 
Instance details

Defined in Ema.Route.Lib.Folder

type SiteArg (FolderRoute prefix r) = SiteArg r
type SiteOutput (FolderRoute prefix r) Source # 
Instance details

Defined in Ema.Route.Lib.Folder

prefixRoutePrism :: forall prefix r. KnownSymbol prefix => (RouteModel r -> Prism_ FilePath r) -> RouteModel r -> Prism_ FilePath (FolderRoute prefix r) Source #

Prefix the encoding of the given route prism.