Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data PageConfig = PageConfig {}
- type PageT m = ClckT PageURL (ReaderT PageConfig m)
- type PageT' url m = ClckT url (ReaderT PageConfig m)
- type PageM = ClckT PageURL (ReaderT PageConfig (ServerPartT IO))
- type PageAdminM = ClckT PageAdminURL (ReaderT PageConfig (ServerPartT IO))
- runPageT :: PageConfig -> PageT m a -> ClckT PageURL m a
- runPageT'' :: Monad m => (PageURL -> [(Text, Maybe Text)] -> Text) -> PageConfig -> PageT m a -> ClckT url m a
- flattenURLClckT :: (url1 -> [(Text, Maybe Text)] -> Text) -> ClckT url1 m a -> ClckT url2 m a
- clckT2PageT :: (Functor m, MonadIO m, MonadFail m, Typeable url1) => ClckT url1 m a -> PageT m a
- data PageFormError
- type PageForm = ClckFormT PageFormError PageM
- markupToContent :: (Functor m, MonadIO m, MonadFail m, Happstack m) => Markup -> ClckT url m Content
Documentation
data PageConfig Source #
Instances
Monad m => MonadReader PageConfig (PageT' url m) Source # | |
Defined in Clckwrks.Page.Monad 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 # | |
Defined in Clckwrks.Page.Monad | |
IsName n Text => EmbedAsAttr PageM (Attr n PageURL) Source # | |
Defined in Clckwrks.Page.Monad | |
(Functor m, Monad m) => EmbedAsChild (PageT m) PageFormError Source # | |
Defined in Clckwrks.Page.Monad asChild :: PageFormError -> GenChildList (PageT m) # | |
(Functor m, Monad m) => GetAcidState (PageT' url m) PageState Source # | |
Defined in Clckwrks.Page.Monad getAcidState :: PageT' url m (AcidState PageState) # |
type PageM = ClckT PageURL (ReaderT PageConfig (ServerPartT IO)) Source #
type PageAdminM = ClckT PageAdminURL (ReaderT PageConfig (ServerPartT IO)) 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 #
data PageFormError Source #
Instances
Show PageFormError Source # | |
Defined in Clckwrks.Page.Monad showsPrec :: Int -> PageFormError -> ShowS # show :: PageFormError -> String # showList :: [PageFormError] -> ShowS # | |
FormError PageFormError Source # | |
Defined in Clckwrks.Page.Monad type ErrorInputType PageFormError :: Type # | |
(Functor m, Monad m) => EmbedAsChild (PageT m) PageFormError Source # | |
Defined in Clckwrks.Page.Monad asChild :: PageFormError -> GenChildList (PageT m) # | |
type ErrorInputType PageFormError Source # | |
Defined in Clckwrks.Page.Monad |