About

Metadata

  • Last updated , by jan_sena
  • License LGPL-3.0-or-later
  • Categories Text Processing
  • Maintained by: contact@sena.pink

  • Lottery factor: 1

Links

Installation

Tested Compilers

  1. 9.8.2
  2. 9.6.5

Readme

gemmula - a tiny gemtext parser for Haskell

The documentation is available at Hackage.

Example

>>> let document = Text.Gemini.decode <$> Data.Text.IO.readFile "examples/paradox.gmi"
>>> document

[ GemHeading 1 "gemmula"
, GemList [ "hello,"
          , "world!"
          ]
, GemText ""
, GemQuote "made with"
, GemPre [ "<3"
         ]
         (Just "ascii art of a heart")
, GemLink "https://www.haskell.org" (Just "and Haskell!")
]

>>> Text.Gemini.encode <$> document >>= Data.Text.IO.writeFile "examples/paradox.gmi"

See also