name:               achille
version:            0.0.0
synopsis:           A library for building static site generators
category:           Web
description:
  achille is a library for building incremental static site generators.
  For more information, see here: <https://acatalepsie.fr/projects/achille>.

bug-reports:        https://github.com/flupe/achille/issues
homepage:           https://acatalepsie.fr/projects/achille
author:             Lucas Escot <lucas@escot.me>
maintainer:         Lucas Escot <lucas@escot.me>
license:            MIT
license-file:       LICENSE
cabal-version:      >= 1.10
build-type:         Simple
tested-with:        GHC == 8.8.4

source-repository head
  type:             git
  location:         git://github.com/flupe/achille.git

flag pandoc
  description: Enable Pandoc and Front Matter header support
  default: True

library
  default-language:  Haskell2010
  hs-source-dirs:    src
  default-extensions: BlockArguments
                    , LambdaCase
                    , TupleSections
                    , CPP
  exposed-modules:   Achille
                   , Achille.Config
                   , Achille.Writable
                   , Achille.Timestamped
                   , Achille.Internal
                   , Achille.Internal.IO
                   , Achille.Recipe
                   , Achille.Task
  build-depends:     base                  >= 4.11    && < 5
                   , process               >= 1.6.9   && < 1.7
                   , filepath              >= 1.4.2   && < 1.5
                   , directory             >= 1.3.6   && < 1.4
                   , Glob                  >= 0.10.1  && < 0.11
                   , binary                >= 0.8.7   && < 0.9
                   , bytestring            >= 0.10.10 && < 0.11
                   , text                  >= 1.2.4   && < 1.3
                   , time                  >= 1.9.3   && < 1.10
                   , data-default          >= 0.7.1   && < 0.8
                   , optparse-applicative  >= 0.15.1  && < 0.16
                   , binary-instances      >= 1.0.0   && < 1.1


  if flag(pandoc)
    exposed-modules: Achille.Recipe.Pandoc
    build-depends:   pandoc                >= 2.9.2  && < 2.10
                   , pandoc-types          >= 1.20   && < 1.21
                   , frontmatter           >= 0.1.0  && < 0.2
                   , aeson                 >= 1.4.7  && < 1.5

test-suite test-achille
  default-language:  Haskell2010
  type:           exitcode-stdio-1.0
  main-is:        Main.hs
  other-modules:  FakeIO
  hs-source-dirs: tests
  build-depends:  base >= 4.11 && < 5
                , directory
                , text
                , containers
                , filepath
                , bytestring
                , Glob
                , tasty
                , tasty-hunit
                , time
                , mtl
                , achille