- do all filters in one go - do all post lists in one run of the program - only write files if they are changed (so make repeats less work) - simplify pandoc command for meta pages (this might not actually make a difference)
62 lines
1.2 KiB
Text
62 lines
1.2 KiB
Text
cabal-version: 2.2
|
|
name: blog-meta
|
|
version: 0.1
|
|
|
|
author: rhiannon morris <rhi@rhiannon.website>
|
|
maintainer: rhiannon morris <rhi@rhiannon.website>
|
|
|
|
common deps
|
|
default-language: GHC2024
|
|
default-extensions:
|
|
BlockArguments,
|
|
DuplicateRecordFields,
|
|
OverloadedStrings,
|
|
OverloadedLists,
|
|
NondecreasingIndentation,
|
|
RecordWildCards,
|
|
ViewPatterns
|
|
build-depends:
|
|
base >= 4.14.2.0 && < 4.21,
|
|
mtl,
|
|
transformers,
|
|
HsYAML ^>= 0.2.1.0,
|
|
bytestring ^>= 0.11.4.0,
|
|
containers ^>= 0.6.4.1,
|
|
filemanip,
|
|
filepath ^>= 1.4.2.1,
|
|
directory ^>= 1.3.8.3,
|
|
pandoc-types ^>= 1.23,
|
|
text >= 2 && < 2.2,
|
|
time ^>= 1.9.3
|
|
build-tool-depends:
|
|
langfilter:langfilter
|
|
ghc-options: -Wall
|
|
|
|
common exe
|
|
build-depends: blog-meta, langfilter
|
|
ghc-options: -threaded -rtsopts -with-rtsopts=-N
|
|
|
|
library
|
|
import: deps
|
|
hs-source-dirs: lib
|
|
exposed-modules:
|
|
YAML,
|
|
Misc,
|
|
SlugTags,
|
|
FixFigures,
|
|
NiceDate
|
|
|
|
executable post-lists
|
|
import: deps, exe
|
|
hs-source-dirs: .
|
|
main-is: post-lists.hs
|
|
|
|
executable all-tags
|
|
import: deps, exe
|
|
hs-source-dirs: .
|
|
main-is: all-tags.hs
|
|
|
|
executable combo-filter
|
|
import: deps, exe
|
|
hs-source-dirs: .
|
|
main-is: combo-filter.hs
|