-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A tiny Gemtext parser -- -- gemmula is a tiny and functional text/gemini (also known as Gemtext) -- parser that aims to parse a Gemtext document from and to Text, -- according to the Section 5 of the Gemini Protocol specification at -- https://geminiprotocol.net/docs/specification.gmi. @package gemmula @version 1.0.0 -- | A tiny text/gemini parser. -- -- Parses Gemtext documents from and to Text. See the Section 5 of -- the Gemini Protocol specification. module Text.Gemini -- | A Gemtext document, in the form of an ordered list. type GemDocument = [GemItem] -- | A Gemtext item. data GemItem -- | A regular Gemtext line. -- GemText <Text> GemText :: !Text -> GemItem -- | A Gemtext link. -- GemLink <Link> [Optional -- Description] GemLink :: !Text -> !Maybe Text -> GemItem -- | A Gemtext heading of 3 levels max. -- GemHeading -- <Level> <Text> GemHeading :: !Int -> !Text -> GemItem -- | A Gemtext unordered list. -- GemList <Lines> GemList :: ![Text] -> GemItem -- | A Gemtext quote. -- GemQuote <Text> GemQuote :: !Text -> GemItem -- | A Gemtext preformat. -- GemPre <Lines> [Optional Alt -- Text] GemPre :: ![Text] -> !Maybe Text -> GemItem -- | Parse a text/gemini file as GemDocument. The text -- should be supplied as an LF-ending Text. decode :: Text -> GemDocument -- | Parse a single text/gemini line as GemItem. -- -- Notes: -- --