mirror of
https://github.com/joshuaclayton/unused.git
synced 2024-08-15 07:40:46 +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 :: String -> String -> Bool
|
||||||
matchRegex = matchTest . stringToRegex
|
matchRegex = matchTest . stringToRegex
|
||||||
|
|
||||||
stringToRegex :: RegexMaker Regex CompOption ExecOption String => String -> Regex
|
stringToRegex :: String -> Regex
|
||||||
stringToRegex = makeRegex
|
stringToRegex = makeRegex
|
||||||
|
17
stack.yaml
17
stack.yaml
@ -2,25 +2,20 @@
|
|||||||
# For more information, see: http://docs.haskellstack.org/en/stable/yaml_configuration/
|
# 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)
|
# 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
|
# Local packages, usually specified by relative directory name
|
||||||
packages:
|
packages:
|
||||||
- '.'
|
- '.'
|
||||||
# Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3)
|
# Packages to be pulled from upstream that are not in the resolver (e.g., acme-missiles-0.3)
|
||||||
extra-deps:
|
extra-deps:
|
||||||
- aeson-0.11.2.1
|
|
||||||
- call-stack-0.1.0
|
|
||||||
- cassava-0.4.5.1
|
- cassava-0.4.5.1
|
||||||
- hspec-2.3.2
|
- hspec-2.5.0
|
||||||
- hspec-core-2.3.2
|
- hspec-core-2.5.0
|
||||||
- hspec-discover-2.3.2
|
- hspec-discover-2.5.0
|
||||||
- hspec-expectations-0.8.2
|
|
||||||
- inflections-0.3.0.0
|
- inflections-0.3.0.0
|
||||||
- integer-logarithms-1
|
- megaparsec-5.3.1
|
||||||
- megaparsec-5.1.2
|
- terminal-progress-bar-0.1.1.1
|
||||||
- mmorph-1.0.9
|
|
||||||
- scientific-0.3.4.10
|
|
||||||
|
|
||||||
# Override default flag values for local packages and extra-deps
|
# Override default flag values for local packages and extra-deps
|
||||||
flags: {}
|
flags: {}
|
||||||
|
@ -67,7 +67,7 @@ library
|
|||||||
, filepath
|
, filepath
|
||||||
, directory
|
, directory
|
||||||
, regex-tdfa
|
, regex-tdfa
|
||||||
, terminal-progress-bar
|
, terminal-progress-bar >= 0.1.1.1 && < 0.1.2
|
||||||
, ansi-terminal
|
, ansi-terminal
|
||||||
, unix
|
, unix
|
||||||
, parallel-io
|
, parallel-io
|
||||||
@ -117,6 +117,7 @@ test-suite unused-test
|
|||||||
, Unused.UtilSpec
|
, Unused.UtilSpec
|
||||||
, Unused.Cache.FindArgsFromIgnoredPathsSpec
|
, Unused.Cache.FindArgsFromIgnoredPathsSpec
|
||||||
, Unused.AliasesSpec
|
, Unused.AliasesSpec
|
||||||
|
, Unused.ProjectionSpec
|
||||||
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall
|
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
default-extensions: OverloadedStrings
|
default-extensions: OverloadedStrings
|
||||||
|
Loading…
Reference in New Issue
Block a user