diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2012-05-17 11:46:23 +0200 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2012-05-17 11:46:23 +0200 |
commit | 84b5b16108e73d79c882f1e5ff7bebd7fa85c5ac (patch) | |
tree | e385423c0ee115157b75fd2795a72823013b6457 /hakyll.cabal | |
parent | 759f1e61eadc29708e60fd51bfb92b9fa5c90ec2 (diff) | |
download | hakyll-84b5b16108e73d79c882f1e5ff7bebd7fa85c5ac.tar.gz |
Make UnixFilter module optional
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 |