on master help sign in
Add cabal flag for inotify
commit5abc3d87e234c2f92b6c5481200d1f813ca2ce6f authorJasper Van der Jeugt <jaspervdj@gmail.com> dateWed 23 Feb 2011, 10:11 (16 years ago) parent371c28c
4 files changed+20−7
hakyll.cabal+17−4 src/Hakyll/Web/Preview/INotify.hs → src-inotify/Hakyll/Web/Preview/Poll.hs+1−1 src/Hakyll/Web/Preview/Interval.hs → src-interval/Hakyll/Web/Preview/Poll.hs+1−1 src/Hakyll/Main.hs+1−1
hakyll.cabal+17−4
@@ -1,5 +1,5 @@
11Name: hakyll
2−Version: 2.4.1
2+Version: 3.0.0.0
33
44Synopsis: A simple static site generator library.
55Description: A simple static site generator library, mainly aimed at
@@ -24,9 +24,20 @@ source-repository head
2424 type: git
2525 location: git://github.com/jaspervdj/Hakyll.git
2626
27+flag inotify
28+ description: Use the inotify bindings for the preview server. Better, but
29+ only works on Linux.
30+ default: False
31+
2732library
2833 ghc-options: -Wall
2934 hs-source-dirs: src
35+
36+ if flag(inotify)
37+ hs-source-dirs: src-inotify
38+ else
39+ hs-source-dirs: src-interval
40+
3041 build-depends: base >= 4 && < 5,
3142 filepath == 1.*,
3243 directory == 1.*,
@@ -47,12 +58,14 @@ library
4758 utf8-string >= 0.3,
4859 hinotify >= 0.3,
4960 tagsoup >= 0.12,
50− hopenssl >= 1.4
61+ hopenssl >= 1.4,
62+ unix >= 2.4,
63+ strict-concurrency >= 0.2
5164 exposed-modules: Hakyll
5265 Hakyll.Main
5366 Hakyll.Web.Util.String
5467 Hakyll.Web.Preview.Server
55− Hakyll.Web.Preview.INotify
68+ Hakyll.Web.Preview.Poll
5669 Hakyll.Web.CompressCss
5770 Hakyll.Web.Template
5871 Hakyll.Web.Feed
@@ -64,10 +77,10 @@ library
6477 Hakyll.Web.RelativizeUrls
6578 Hakyll.Web.Page.Read
6679 Hakyll.Web.Page.Metadata
67− Hakyll.Web
6880 Hakyll.Core.ResourceProvider.FileResourceProvider
6981 Hakyll.Core.Configuration
7082 Hakyll.Core.Identifier.Pattern
83+ Hakyll.Core.UnixFilter
7184 Hakyll.Core.Util.Arrow
7285 Hakyll.Core.Util.File
7386 Hakyll.Core.ResourceProvider
src/Hakyll/Web/Preview/INotify.hs → src-inotify/Hakyll/Web/Preview/Poll.hsrenamed+1−1
@@ -1,6 +1,6 @@
11-- | Filesystem polling with an inotify backend. Works only on linux.
22--
3−module Hakyll.Web.Preview.INotify
3+module Hakyll.Web.Preview.Poll
44 ( previewPoll
55 ) where
66
src/Hakyll/Web/Preview/Interval.hs → src-interval/Hakyll/Web/Preview/Poll.hsrenamed+1−1
@@ -1,7 +1,7 @@
11-- | Interval-based implementation of preview polling, for the platforms which
22-- are not supported by inotify.
33--
4−module Hakyll.Web.Preview.Interval
4+module Hakyll.Web.Preview.Poll
55 ( previewPoll
66 ) where
77
src/Hakyll/Main.hs+1−1
@@ -14,7 +14,7 @@ import Hakyll.Core.Configuration
1414import Hakyll.Core.Run
1515import Hakyll.Core.Rules
1616import Hakyll.Core.Rules.Internal
17−import Hakyll.Web.Preview.INotify
17+import Hakyll.Web.Preview.Poll
1818import Hakyll.Web.Preview.Server
1919
2020-- | This usualy is the function with which the user runs the hakyll compiler