summaryrefslogtreecommitdiff
path: root/hakyll.cabal
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2017-12-21 15:23:49 +0100
committerGitHub <noreply@github.com>2017-12-21 15:23:49 +0100
commitc29b344ceba1214548a194d885a1d3f2e819784e (patch)
treee18ef69947a2cd282a1aef3a26665da89020c22b /hakyll.cabal
parentd011b17eec0f55b7af6603aab94e31003a438496 (diff)
downloadhakyll-c29b344ceba1214548a194d885a1d3f2e819784e.tar.gz
Cabalize website
Diffstat (limited to 'hakyll.cabal')
-rw-r--r--hakyll.cabal46
1 files changed, 36 insertions, 10 deletions
diff --git a/hakyll.cabal b/hakyll.cabal
index 93a8b00..b19bbb8 100644
--- a/hakyll.cabal
+++ b/hakyll.cabal
@@ -37,7 +37,7 @@ License: BSD3
License-File: LICENSE
Category: Web
-Cabal-Version: >= 1.8
+Cabal-Version: >= 1.10
Build-Type: Simple
Data-Dir: data
@@ -94,9 +94,15 @@ Flag checkExternal
Description: Include external link checking
Default: True
+Flag buildWebsite
+ Description: Build the hakyll website
+ Default: False
+ Manual: True
+
Library
- Ghc-Options: -Wall
- Hs-Source-Dirs: lib
+ Ghc-Options: -Wall
+ Hs-Source-Dirs: lib
+ Default-language: Haskell2010
Exposed-Modules:
Hakyll
@@ -217,10 +223,11 @@ Library
-DCHECK_EXTERNAL
Test-suite hakyll-tests
- Type: exitcode-stdio-1.0
- Hs-source-dirs: tests
- Main-is: TestSuite.hs
- Ghc-options: -Wall
+ Type: exitcode-stdio-1.0
+ Hs-source-dirs: tests
+ Main-is: TestSuite.hs
+ Ghc-options: -Wall
+ Default-language: Haskell2010
Other-modules:
Hakyll.Core.Dependencies.Tests
@@ -307,9 +314,10 @@ Test-suite hakyll-tests
-DCHECK_EXTERNAL
Executable hakyll-init
- Ghc-options: -Wall
- Hs-source-dirs: src
- Main-is: Init.hs
+ Main-is: Init.hs
+ Ghc-options: -Wall
+ Hs-source-dirs: src
+ Default-language: Haskell2010
Other-modules:
Paths_hakyll
@@ -319,3 +327,21 @@ Executable hakyll-init
base >= 4 && < 5,
directory >= 1.0 && < 1.4,
filepath >= 1.0 && < 1.5
+
+Executable hakyll-website
+ Main-is: site.hs
+ Ghc-options: -Wall
+ Hs-source-dirs: web
+ Default-language: Haskell2010
+
+ If flag(buildWebsite)
+ Buildable: True
+ Else
+ Buildable: False
+
+ Build-depends:
+ hakyll,
+ base >= 4 && < 5,
+ directory >= 1.0 && < 1.4,
+ filepath >= 1.0 && < 1.5,
+ pandoc >= 2.0.5 && < 2.1