mirror of
https://github.com/joshuaclayton/unused.git
synced 2024-07-14 16:10:28 +03:00
Allow Stack to build the project and run the test suite
What? ===== This bumps Stack dependencies and locks certain packages to ensure a proper build.
This commit is contained in:
parent
e630e8d8c8
commit
cd1b840368
@ -9,5 +9,5 @@ import Text.Regex.TDFA
|
||||
matchRegex :: String -> String -> Bool
|
||||
matchRegex = matchTest . stringToRegex
|
||||
|
||||
stringToRegex :: RegexMaker Regex CompOption ExecOption String => String -> Regex
|
||||
stringToRegex :: String -> Regex
|
||||
stringToRegex = makeRegex
|
||||
|
17
stack.yaml
17
stack.yaml
@ -2,25 +2,20 @@
|
||||
# For more information, see: http://docs.haskellstack.org/en/stable/yaml_configuration/
|
||||
|
||||
# Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2)
|
||||
resolver: lts-6.0
|
||||
resolver: lts-11.0
|
||||
|
||||
# Local packages, usually specified by relative directory name
|
||||
packages:
|
||||
- '.'
|
||||
# Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3)
|
||||
extra-deps:
|
||||
- aeson-0.11.2.1
|
||||
- call-stack-0.1.0
|
||||
- cassava-0.4.5.1
|
||||
- hspec-2.3.2
|
||||
- hspec-core-2.3.2
|
||||
- hspec-discover-2.3.2
|
||||
- hspec-expectations-0.8.2
|
||||
- hspec-2.5.0
|
||||
- hspec-core-2.5.0
|
||||
- hspec-discover-2.5.0
|
||||
- inflections-0.3.0.0
|
||||
- integer-logarithms-1
|
||||
- megaparsec-5.1.2
|
||||
- mmorph-1.0.9
|
||||
- scientific-0.3.4.10
|
||||
- megaparsec-5.3.1
|
||||
- terminal-progress-bar-0.1.1.1
|
||||
|
||||
# Override default flag values for local packages and extra-deps
|
||||
flags: {}
|
||||
|
@ -67,7 +67,7 @@ library
|
||||
, filepath
|
||||
, directory
|
||||
, regex-tdfa
|
||||
, terminal-progress-bar
|
||||
, terminal-progress-bar >= 0.1.1.1 && < 0.1.2
|
||||
, ansi-terminal
|
||||
, unix
|
||||
, parallel-io
|
||||
@ -117,6 +117,7 @@ test-suite unused-test
|
||||
, Unused.UtilSpec
|
||||
, Unused.Cache.FindArgsFromIgnoredPathsSpec
|
||||
, Unused.AliasesSpec
|
||||
, Unused.ProjectionSpec
|
||||
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall
|
||||
default-language: Haskell2010
|
||||
default-extensions: OverloadedStrings
|
||||
|
Loading…
Reference in New Issue
Block a user