@@ -52,7 +52,11 @@ Source-Repository head
5252
5353Flag previewServer
5454 Description: Include the preview server
55− default: True
55+ Default: True
56+
57+Flag unixFilter
58+ Description: Include the UnixFilter module
59+ Default: True
5660
5761Library
5862 Ghc-Options: -Wall
@@ -80,8 +84,7 @@ Library
8084 regex-tdfa >= 1.1 && < 1.2,
8185 tagsoup >= 0.12.6 && < 0.13,
8286 text >= 0.11 && < 1.12,
83− time >= 1.1 && < 1.5,
84− unix >= 2.4 && < 2.6
87+ time >= 1.1 && < 1.5
8588
8689 Exposed-Modules:
8790 Hakyll
@@ -102,7 +105,6 @@ Library
102105 Hakyll.Core.Rules
103106 Hakyll.Core.Run
104107 Hakyll.Core.Store
105− Hakyll.Core.UnixFilter
106108 Hakyll.Core.Util.Arrow
107109 Hakyll.Core.Util.File
108110 Hakyll.Core.Util.String
@@ -141,12 +143,20 @@ Library
141143 Build-depends:
142144 snap-core >= 0.6 && < 0.9,
143145 snap-server >= 0.6 && < 0.9
144− Cpp-Options:
146+ Cpp-options:
145147 -DPREVIEW_SERVER
146− Other-Modules:
148+ Other-modules:
147149 Hakyll.Web.Preview.Poll
148150 Hakyll.Web.Preview.Server
149151
152+ If flag(unixFilter)
153+ Build-depends:
154+ unix >= 2.4 && < 2.6
155+ Cpp-options:
156+ -DUNIX_FILTER
157+ Other-modules:
158+ Hakyll.Core.UnixFilter
159+
150160Test-suite hakyll-tests
151161 Type: exitcode-stdio-1.0
152162 Hs-source-dirs: src tests