Skip to content

Commit 72b8b04

Browse files
jrp2014Adam Wespiser
authored andcommitted
touch up scheme.cabal
1 parent 3b0c9b7 commit 72b8b04

File tree

4 files changed

+21
-7
lines changed

4 files changed

+21
-7
lines changed

Build.hs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import Development.Shake
88
(%>),
99
need,
1010
phony,
11+
putInfo,
12+
removeFilesAfter,
1113
want )
1214
import Development.Shake.FilePath ( (-<.>), (</>), dropDirectory1 )
1315

@@ -21,6 +23,10 @@ main = shakeArgs shakeOptions $ do
2123
let targets = ["output" </> (f -<.> "wiki") | f <- files]
2224
need targets
2325

26+
phony "clean" $ do
27+
putInfo "Cleaning files in output"
28+
removeFilesAfter "output" ["//*"]
29+
2430
"output/scheme.html" %> \out -> do
2531
need ["resources/page.tmpl"]
2632
files <- fmap ("docs/" </>) <$> getDirectoryFiles "docs" ["*.md"]

hie.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
cradle:
2+
cabal:

output/.gitkeep

Whitespace-only changes.

scheme.cabal

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: scheme
33
version: 0.1
44
synopsis: Write You a Scheme
55
description: Write You a Scheme v2.
6+
category: Tutorials
67
author: Adam Wespiser
78
maintainer: Adam Wespiser <adamwespiser@gmail.com>
89
license: MIT
@@ -24,9 +25,9 @@ common common-options
2425
other-modules: Paths_scheme
2526
autogen-modules: Paths_scheme
2627
ghc-options:
27-
-Werror -Wall -Wextra -Wcompat -Widentities -Wincomplete-uni-patterns
28-
-Wincomplete-record-updates -Wredundant-constraints
29-
-Wnoncanonical-monad-instances
28+
-Wall -Wextra -Wcompat -Widentities
29+
-Wincomplete-uni-patterns -Wincomplete-record-updates
30+
-Wredundant-constraints -Wnoncanonical-monad-instances
3031

3132
if impl(ghc >=8.2)
3233
ghc-options: -fhide-source-paths
@@ -36,12 +37,16 @@ common common-options
3637

3738
if impl(ghc >=8.8)
3839
ghc-options: -fwrite-ide-info -hiedir=.hie
39-
-- ghc-options: -Wmissing-deriving-strategies -fwrite-ide-info -hiedir=.hie
40+
41+
-- ghc-options: -Wmissing-deriving-strategies -fwrite-ide-info -hiedir=.hie
4042

4143
if impl(ghc >=8.10)
4244
ghc-options: -Wunused-packages
4345

44-
default-extensions: OverloadedStrings StrictData
46+
default-extensions:
47+
OverloadedStrings
48+
StrictData
49+
4550
default-language: Haskell2010
4651

4752
library
@@ -68,7 +73,9 @@ library
6873
executable docs
6974
import: common-options
7075
main-is: Build.hs
71-
build-depends: shake
76+
build-depends:
77+
-- , pandoc
78+
, shake
7279

7380
executable scheme
7481
import: common-options
@@ -84,7 +91,6 @@ test-suite test
8491
hs-source-dirs: test-hs/Spec/
8592
ghc-options: -threaded -rtsopts -with-rtsopts=-N
8693
build-depends:
87-
, base >=4.8 && <5.0
8894
, hspec
8995
, scheme
9096
, text

0 commit comments

Comments
 (0)