-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A yesod subsite serving a wiki. -- -- A yesod subsite serving a wiki. @package informative @version 0.1.0.13 module Web.Informative.Data data Informative Informative :: Text -> Text -> Informative [getSegment] :: Informative -> Text [getPrefix] :: Informative -> Text resourcesInformative :: [ResourceTree String] data TextFormat Markdown :: TextFormat MediaWiki :: TextFormat ReStructuredText :: TextFormat LaTeX :: TextFormat Textile :: TextFormat Source :: Text -> Int -> TextFormat Plain :: TextFormat data TextKind Article :: TextKind Table :: TextKind Mapping :: TextKind Hint :: TextKind Error :: TextKind instance Database.Persist.Class.PersistField.PersistField Web.Informative.Data.TextKind instance Database.Persist.Sql.Class.PersistFieldSql Web.Informative.Data.TextKind instance GHC.Enum.Bounded Web.Informative.Data.TextKind instance GHC.Enum.Enum Web.Informative.Data.TextKind instance GHC.Read.Read Web.Informative.Data.TextKind instance GHC.Show.Show Web.Informative.Data.TextKind instance GHC.Classes.Ord Web.Informative.Data.TextKind instance GHC.Classes.Eq Web.Informative.Data.TextKind instance Database.Persist.Class.PersistField.PersistField Web.Informative.Data.TextFormat instance Database.Persist.Sql.Class.PersistFieldSql Web.Informative.Data.TextFormat instance GHC.Read.Read (Yesod.Routes.Class.Route Web.Informative.Data.Informative) instance GHC.Classes.Eq (Yesod.Routes.Class.Route Web.Informative.Data.Informative) instance GHC.Show.Show (Yesod.Routes.Class.Route Web.Informative.Data.Informative) instance GHC.Read.Read Web.Informative.Data.TextFormat instance GHC.Show.Show Web.Informative.Data.TextFormat instance GHC.Classes.Ord Web.Informative.Data.TextFormat instance GHC.Classes.Eq Web.Informative.Data.TextFormat instance Yesod.Routes.Class.ParseRoute Web.Informative.Data.Informative instance Yesod.Routes.Class.RenderRoute Web.Informative.Data.Informative instance Yesod.Routes.Class.RouteAttrs Web.Informative.Data.Informative module Web.Informative type WikiHandler a = forall master. (YesodWikiAuth master, YesodPersist master, YesodPersistBackend master ~ SqlBackend) => HandlerT Informative (HandlerT master IO) a class (Yesod master, RenderMessage master FormMessage) => YesodWikiAuth master getAuthR :: YesodWikiAuth master => HandlerT master IO (AuthRoute -> Route master) getUserName :: YesodWikiAuth master => HandlerT master IO Text isLoggedIn :: YesodWikiAuth master => HandlerT master IO Bool wikiLayout :: YesodWikiAuth master => WidgetT master IO () -> HandlerT master IO Html data Wikipage Wikipage :: !Text -> !Text -> !Text -> !UTCTime -> Wikipage [wikipageTitle] :: Wikipage -> !Text [wikipageSegment] :: Wikipage -> !Text [wikipageEditor] :: Wikipage -> !Text [wikipageTimestamp] :: Wikipage -> !UTCTime type WikipageId = Key Wikipage data Wikisection Wikisection :: !Text -> !TextFormat -> !TextKind -> Wikisection [wikisectionContent] :: Wikisection -> !Text [wikisectionFormat] :: Wikisection -> !TextFormat [wikisectionKind] :: Wikisection -> !TextKind type WikisectionId = Key Wikisection data Wikirel Wikirel :: !(Key Wikipage) -> !(Key Wikisection) -> !Int -> Wikirel [wikirelPage] :: Wikirel -> !(Key Wikipage) [wikirelSection] :: Wikirel -> !(Key Wikisection) [wikirelIndex] :: Wikirel -> !Int type WikirelId = Key Wikirel data Wikisugg Wikisugg :: !Text -> !Text -> !Int -> !Text -> Wikisugg [wikisuggPage] :: Wikisugg -> !Text [wikisuggSegment] :: Wikisugg -> !Text [wikisuggIndex] :: Wikisugg -> !Int [wikisuggCaption] :: Wikisugg -> !Text type WikisuggId = Key Wikisugg migrateWiki :: Migration readFmt :: TextFormat -> ReaderOptions -> String -> Pandoc convFmt :: TextFormat -> String -> Html extensions :: Set Extension convSect :: TextKind -> TextFormat -> Text -> Either Html [[Html]] convTable :: TextFormat -> Text -> Either Html [[Html]] source :: TextFormat -> Text -> Int -> TextFormat fmtNorm :: TextFormat -> TextFormat fmtLang :: TextFormat -> Text fmtLine :: TextFormat -> Int toClassname :: Text -> [Char] remCR :: [Char] -> [Char] renderShowArticle :: YesodWikiAuth master => [Entity Wikisugg] -> Bool -> (AuthRoute -> Route master) -> (Route Informative -> Route master) -> AuthResult -> Maybe Html -> [(Int, (Text, Either Html [[Html]], TextKind, TextFormat))] -> [(Text, Text, UTCTime)] -> Text -> HandlerT Informative (HandlerT master IO) Html renderEditArticle :: YesodWikiAuth master => [Entity Wikisugg] -> Bool -> (AuthRoute -> Route master) -> (Route Informative -> Route master) -> Route master -> Maybe Html -> Maybe (Either Html [[Html]]) -> TextKind -> PageContent (Route master) -> Text -> HandlerT Informative (HandlerT master IO) Html getArticleIdR :: Text -> WikiHandler Html getArticleR :: Text -> WikiHandler Html data SectionData SectionData :: TextKind -> TextFormat -> Text -> Int -> Textarea -> SectionData [sdKind] :: SectionData -> TextKind [sdFormat] :: SectionData -> TextFormat [sdLang] :: SectionData -> Text [sdFirstLine] :: SectionData -> Int [sdContent] :: SectionData -> Textarea editSectionForm :: RenderMessage master FormMessage => Maybe SectionData -> Html -> MForm (HandlerT master IO) (FormResult SectionData, WidgetT master IO ()) getEditR :: Text -> WikiHandler Html getInsertR :: Text -> WikiHandler Html getPrependR :: Text -> WikiHandler Html getCreateR :: Text -> WikiHandler Html postEditR :: Text -> WikiHandler Html postInsertR :: Text -> WikiHandler Html postPrependR :: Text -> WikiHandler Html postCreateR :: Text -> WikiHandler Html postDownR :: Text -> WikiHandler Html postUpR :: Text -> WikiHandler Html postDeleteR :: Text -> WikiHandler Html instance Data.Aeson.Types.Class.FromJSON (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikipage) instance Data.Aeson.Types.Class.ToJSON (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikipage) instance Database.Persist.Sql.Class.PersistFieldSql (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikipage) instance Database.Persist.Class.PersistField.PersistField (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikipage) instance Web.PathPieces.PathPiece (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikipage) instance GHC.Classes.Ord (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikipage) instance GHC.Classes.Eq (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikipage) instance GHC.Read.Read (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikipage) instance GHC.Show.Show (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikipage) instance Data.Aeson.Types.Class.FromJSON (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikisection) instance Data.Aeson.Types.Class.ToJSON (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikisection) instance Database.Persist.Sql.Class.PersistFieldSql (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikisection) instance Database.Persist.Class.PersistField.PersistField (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikisection) instance Web.PathPieces.PathPiece (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikisection) instance GHC.Classes.Ord (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikisection) instance GHC.Classes.Eq (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikisection) instance GHC.Read.Read (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikisection) instance GHC.Show.Show (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikisection) instance Data.Aeson.Types.Class.FromJSON (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikirel) instance Data.Aeson.Types.Class.ToJSON (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikirel) instance Database.Persist.Sql.Class.PersistFieldSql (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikirel) instance Database.Persist.Class.PersistField.PersistField (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikirel) instance Web.PathPieces.PathPiece (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikirel) instance GHC.Classes.Ord (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikirel) instance GHC.Classes.Eq (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikirel) instance GHC.Read.Read (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikirel) instance GHC.Show.Show (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikirel) instance Data.Aeson.Types.Class.FromJSON (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikisugg) instance Data.Aeson.Types.Class.ToJSON (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikisugg) instance Database.Persist.Sql.Class.PersistFieldSql (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikisugg) instance Database.Persist.Class.PersistField.PersistField (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikisugg) instance Web.PathPieces.PathPiece (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikisugg) instance GHC.Classes.Ord (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikisugg) instance GHC.Classes.Eq (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikisugg) instance GHC.Read.Read (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikisugg) instance GHC.Show.Show (Database.Persist.Class.PersistEntity.Key Web.Informative.Wikisugg) instance Database.Persist.Class.PersistField.PersistField Web.Informative.Wikipage instance Database.Persist.Sql.Class.PersistFieldSql Web.Informative.Wikipage instance Database.Persist.Class.PersistField.PersistField Web.Informative.Wikisection instance Database.Persist.Sql.Class.PersistFieldSql Web.Informative.Wikisection instance Database.Persist.Class.PersistField.PersistField Web.Informative.Wikirel instance Database.Persist.Sql.Class.PersistFieldSql Web.Informative.Wikirel instance Database.Persist.Class.PersistField.PersistField Web.Informative.Wikisugg instance Database.Persist.Sql.Class.PersistFieldSql Web.Informative.Wikisugg instance Database.Persist.Class.PersistEntity.PersistEntity Web.Informative.Wikipage instance Database.Persist.Class.PersistStore.ToBackendKey Database.Persist.Sql.Types.SqlBackend Web.Informative.Wikipage instance Database.Persist.Class.PersistEntity.PersistEntity Web.Informative.Wikisection instance Database.Persist.Class.PersistStore.ToBackendKey Database.Persist.Sql.Types.SqlBackend Web.Informative.Wikisection instance Database.Persist.Class.PersistEntity.PersistEntity Web.Informative.Wikirel instance Database.Persist.Class.PersistStore.ToBackendKey Database.Persist.Sql.Types.SqlBackend Web.Informative.Wikirel instance Database.Persist.Class.PersistEntity.PersistEntity Web.Informative.Wikisugg instance Database.Persist.Class.PersistStore.ToBackendKey Database.Persist.Sql.Types.SqlBackend Web.Informative.Wikisugg instance (Web.Informative.YesodWikiAuth master, Yesod.Persist.Core.YesodPersist master, Yesod.Persist.Core.YesodPersistBackend master ~ Database.Persist.Sql.Types.SqlBackend) => Yesod.Core.Class.Dispatch.YesodSubDispatch Web.Informative.Data.Informative (Yesod.Core.Types.HandlerT master GHC.Types.IO)