1
0
Fork
You've already forked gemmula
0
a tiny gemtext parser for Haskell https://hackage.haskell.org/package/gemmula
  • Haskell 82.3%
  • Nix 14%
  • Just 3.7%
Sena 3081c8b46d
All checks were successful
ci/woodpecker/push/test/2 Pipeline was successful
ci/woodpecker/push/test/1 Pipeline was successful
ci/woodpecker/push/test/3 Pipeline was successful
ci: fix ghc 9.10.1
2025年01月19日 18:22:46 +03:00
.woodpecker ci: fix ghc 9.10.1 2025年01月19日 18:22:46 +03:00
examples chore: add gitattributes 2024年08月05日 22:40:57 +03:00
src/Text chore: add gitattributes 2024年08月05日 22:40:57 +03:00
test refactor(test): move the main to Main.hs 2024年08月07日 01:46:26 +03:00
.editorconfig feat(Text.Gemini): use CRLF and escape line breaks 2024年08月05日 17:45:15 +03:00
.envrc chore: migrate to haskell-flake 2024年07月31日 21:19:11 +03:00
.gitattributes chore: add gitattributes 2024年08月05日 22:40:57 +03:00
.gitignore chore: migrate to haskell-flake 2024年07月31日 21:19:11 +03:00
cabal.project chore: migrate to haskell-flake 2024年07月31日 21:19:11 +03:00
ChangeLog.md chore: prepare for release 2024年08月05日 22:46:17 +03:00
flake.lock ci: update ghcs 2025年01月19日 18:16:39 +03:00
flake.nix feat(Text.Gemini): use CRLF and escape line breaks 2024年08月05日 17:45:15 +03:00
fourmolu.yaml docs(gemmula): clean up 2024年07月23日 18:52:32 +03:00
gemmula.cabal ci: update ghcs 2025年01月19日 18:16:39 +03:00
justfile chore!: clean up 2024年08月04日 00:39:21 +03:00
LICENSE chore!: clean up 2024年08月04日 00:39:21 +03:00
README.md chore!: clean up 2024年08月04日 00:39:21 +03:00
Setup.lhs chore!: clean up 2024年08月04日 00:39:21 +03:00
stack.yaml ci: update ghcs 2025年01月19日 18:16:39 +03:00
stack.yaml.lock ci: update ghcs 2025年01月19日 18:16:39 +03:00
treefmt.toml chore!: clean up 2024年08月04日 00:39:21 +03:00

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