make quasiquoter for text building

This commit is contained in:
Rhiannon Morris 2020-07-13 04:01:31 +02:00
parent 55a51464ee
commit 22185e3020
3 changed files with 265 additions and 92 deletions

View file

@ -9,7 +9,7 @@ maintainer: Rhiannon Morris <rhi@rhiannon.website>
executable make-pages
hs-source-dirs: .
main-is: Main.hs
other-modules: Info, SinglePage
other-modules: Info, SinglePage, BuildVar
default-language: Haskell2010
default-extensions:
BlockArguments,
@ -18,7 +18,10 @@ executable make-pages
DuplicateRecordFields,
LambdaCase,
NamedFieldPuns,
OverloadedStrings
OverloadedStrings,
PatternSynonyms,
QuasiQuotes,
ViewPatterns
build-depends:
base >= 4.12.0.0 && < 4.15,
containers ^>= 0.6.0.1,
@ -26,6 +29,7 @@ executable make-pages
bytestring ^>= 0.10.8.2,
text ^>= 1.2.3.1,
HsYAML ^>= 0.2.1.0,
optparse-applicative ^>= 0.15.1.0
optparse-applicative ^>= 0.15.1.0,
template-haskell ^>= 2.16.0.0
ghc-options:
-Wall -threaded -rtsopts -with-rtsopts=-N