diff options
Diffstat (limited to 'hakyll.cabal')
-rw-r--r-- | hakyll.cabal | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/hakyll.cabal b/hakyll.cabal index d25cbcc..3550968 100644 --- a/hakyll.cabal +++ b/hakyll.cabal @@ -52,7 +52,11 @@ Source-Repository head Flag previewServer Description: Include the preview server - default: True + Default: True + +Flag unixFilter + Description: Include the UnixFilter module + Default: True Library Ghc-Options: -Wall @@ -78,8 +82,7 @@ Library regex-base >= 0.93 && < 0.94, regex-tdfa >= 1.1 && < 1.2, tagsoup >= 0.12.6 && < 0.13, - time >= 1.1 && < 1.5, - unix >= 2.4 && < 2.6 + time >= 1.1 && < 1.5 Exposed-Modules: Hakyll @@ -99,7 +102,6 @@ Library Hakyll.Core.Rules Hakyll.Core.Run Hakyll.Core.Store - Hakyll.Core.UnixFilter Hakyll.Core.Util.Arrow Hakyll.Core.Util.File Hakyll.Core.Util.String @@ -138,12 +140,20 @@ Library Build-depends: snap-core >= 0.6 && < 0.9, snap-server >= 0.6 && < 0.9 - Cpp-Options: + Cpp-options: -DPREVIEW_SERVER - Other-Modules: + Other-modules: Hakyll.Web.Preview.Poll Hakyll.Web.Preview.Server + If flag(unixFilter) + Build-depends: + unix >= 2.4 && < 2.6 + Cpp-options: + -DUNIX_FILTER + Other-modules: + Hakyll.Core.UnixFilter + Test-suite hakyll-tests Type: exitcode-stdio-1.0 Hs-source-dirs: src tests |