clckwrks-plugin-page-0.4.3.20: support for CMS/Blogging in clckwrks

Safe HaskellNone
LanguageHaskell2010

Clckwrks.Page.Monad

Synopsis

Documentation

data PageConfig Source #

Constructors

PageConfig 
Instances
Monad m => MonadReader PageConfig (PageT' url m) Source # 
Instance details

Defined in Clckwrks.Page.Monad

Methods

ask :: PageT' url m PageConfig #

local :: (PageConfig -> PageConfig) -> PageT' url m a -> PageT' url m a #

reader :: (PageConfig -> a) -> PageT' url m a #

IsName n Text => EmbedAsAttr PageM (Attr n ClckURL) Source # 
Instance details

Defined in Clckwrks.Page.Monad

IsName n Text => EmbedAsAttr PageM (Attr n PageURL) Source # 
Instance details

Defined in Clckwrks.Page.Monad

(Functor m, Monad m) => EmbedAsChild (PageT m) PageFormError Source # 
Instance details

Defined in Clckwrks.Page.Monad

(Functor m, Monad m) => GetAcidState (PageT' url m) PageState Source # 
Instance details

Defined in Clckwrks.Page.Monad

type PageT' url m = ClckT url (ReaderT PageConfig m) Source #

runPageT'' :: Monad m => (PageURL -> [(Text, Maybe Text)] -> Text) -> PageConfig -> PageT m a -> ClckT url m a Source #

flattenURLClckT :: (url1 -> [(Text, Maybe Text)] -> Text) -> ClckT url1 m a -> ClckT url2 m a Source #

clckT2PageT :: (Functor m, MonadIO m, MonadFail m, Typeable url1) => ClckT url1 m a -> PageT m a Source #

markupToContent :: (Functor m, MonadIO m, MonadFail m, Happstack m) => Markup -> ClckT url m Content Source #

convert Markup to Content that can be embedded. Generally by running the pre-processors needed. markupToContent :: (Functor m, MonadIO m, Happstack m) => Markup -> ClckT url m Content