Skip to content

Commit

Permalink
Fix dev workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Mackie committed Dec 2, 2020
1 parent 2e44d82 commit 4d3cb7d
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 19 deletions.
1 change: 0 additions & 1 deletion .ghcid

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.ghc.environment.*
dist-newstyle/
dist/
.stack-work/
result
cabal.project.freeze
46 changes: 29 additions & 17 deletions kesha.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,13 @@ source-repository head
type: git
location: git://github.com/jmackie/kesha.git

flag ci
description: Enable settings for CI
default: False

library
default-language: Haskell2010
hs-source-dirs: src
ghc-options:
-Weverything
-Werror
-fno-warn-missing-import-lists
-fno-warn-missed-specialisations
-fno-warn-all-missed-specialisations
-fno-warn-unsafe
-fno-warn-safe
exposed-modules:
Kesha
Kesha.NAR
Expand All @@ -59,22 +55,23 @@ library
cryptohash-sha1 >= 0.11.100 && < 0.12,
cryptohash-sha256 >= 0.11.101 && < 0.12

test-suite test
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: test
ghc-options:
-Weverything
-Werror

-fno-warn-missing-import-lists
-fno-warn-missed-specialisations
-fno-warn-all-missed-specialisations
-fno-warn-unsafe
-fno-warn-safe

-threaded
-rtsopts
if flag(ci)
ghc-options: -Werror

test-suite test
default-language: Haskell2010
type: exitcode-stdio-1.0
main-is: Main.hs
hs-source-dirs: test
build-depends:
kesha,

Expand All @@ -84,8 +81,23 @@ test-suite test
directory,
filepath,

-- Test dependencies
-- test-specific dependencies
process,
hspec,
QuickCheck,
temporary

ghc-options:
-threaded
-rtsopts

-Weverything

-fno-warn-missing-import-lists
-fno-warn-missed-specialisations
-fno-warn-all-missed-specialisations
-fno-warn-unsafe
-fno-warn-safe

if flag(ci)
ghc-options: -Werror

0 comments on commit 4d3cb7d

Please sign in to comment.