Update to support stack with the lts-3.9 resolver.
This commit is contained in:
parent
647c07e4ca
commit
30fa08e40d
|
|
@ -3,3 +3,4 @@
|
||||||
*.hi
|
*.hi
|
||||||
*.o
|
*.o
|
||||||
dist/
|
dist/
|
||||||
|
.stack-work
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ import Data.Maybe
|
||||||
import Data.Monoid
|
import Data.Monoid
|
||||||
import Data.Foldable (foldMap, forM_, mapM_)
|
import Data.Foldable (foldMap, forM_, mapM_)
|
||||||
import Data.Traversable (traverse, for, forM, mapM)
|
import Data.Traversable (traverse, for, forM, mapM)
|
||||||
import Lens.Family2
|
import Lens.Family2 hiding ((&))
|
||||||
import Lens.Family2.State
|
import Lens.Family2.State
|
||||||
import Lens.Family2.Stock
|
import Lens.Family2.Stock
|
||||||
import Prelude hiding (forM, mapM)
|
import Prelude hiding (forM, mapM)
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ import Data.List
|
||||||
import Data.Function
|
import Data.Function
|
||||||
import Data.Maybe
|
import Data.Maybe
|
||||||
import Data.Monoid
|
import Data.Monoid
|
||||||
import Lens.Family2
|
import Lens.Family2 hiding ((&))
|
||||||
import Lens.Family2.State
|
import Lens.Family2.State
|
||||||
import Lens.Family2.Stock
|
import Lens.Family2.Stock
|
||||||
|
|
||||||
|
|
@ -37,9 +37,6 @@ deleteAt n l = left ++ drop 1 right
|
||||||
nubOn :: Eq b => (a -> b) -> [a] -> [a]
|
nubOn :: Eq b => (a -> b) -> [a] -> [a]
|
||||||
nubOn f = nubBy ((==) `on` f)
|
nubOn f = nubBy ((==) `on` f)
|
||||||
|
|
||||||
sortOn :: Ord b => (a -> b) -> [a] -> [a]
|
|
||||||
sortOn f = sortBy (compare `on` f)
|
|
||||||
|
|
||||||
countOf :: Num r => FoldLike (Sum r) a a' b b' -> (b -> Bool) -> a -> r
|
countOf :: Num r => FoldLike (Sum r) a a' b b' -> (b -> Bool) -> a -> r
|
||||||
countOf l f = getSum . views l (\b -> if f b then Sum 1 else Sum 0)
|
countOf l f = getSum . views l (\b -> if f b then Sum 1 else Sum 0)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,32 @@
|
||||||
|
# For more information, see: https://github.com/commercialhaskell/stack/blob/release/doc/yaml_configuration.md
|
||||||
|
|
||||||
|
# Specifies the GHC version and set of packages available (e.g., lts-3.5, nightly-2015-09-21, ghc-7.10.2)
|
||||||
|
resolver: lts-3.9
|
||||||
|
|
||||||
|
# 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: []
|
||||||
|
|
||||||
|
# Override default flag values for local packages and extra-deps
|
||||||
|
flags: {}
|
||||||
|
|
||||||
|
# Extra package databases containing global packages
|
||||||
|
extra-package-dbs: []
|
||||||
|
|
||||||
|
# Control whether we use the GHC we find on the path
|
||||||
|
# system-ghc: true
|
||||||
|
|
||||||
|
# Require a specific version of stack, using version ranges
|
||||||
|
# require-stack-version: -any # Default
|
||||||
|
# require-stack-version: >= 0.1.4.0
|
||||||
|
|
||||||
|
# Override the architecture used by stack, especially useful on Windows
|
||||||
|
# arch: i386
|
||||||
|
# arch: x86_64
|
||||||
|
|
||||||
|
# Extra directories used by stack for building
|
||||||
|
# extra-include-dirs: [/path/to/dir]
|
||||||
|
# extra-lib-dirs: [/path/to/dir]
|
||||||
|
|
@ -14,7 +14,15 @@ cabal-version: >=1.10
|
||||||
|
|
||||||
executable waterdeep
|
executable waterdeep
|
||||||
main-is: ConsoleUI.hs
|
main-is: ConsoleUI.hs
|
||||||
-- other-modules:
|
other-modules: Waterdeep.Actions,
|
||||||
|
Waterdeep.Buildings,
|
||||||
|
Waterdeep.Factions,
|
||||||
|
Waterdeep.Intrigues,
|
||||||
|
Waterdeep.Logic,
|
||||||
|
Waterdeep.Lords,
|
||||||
|
Waterdeep.Quests,
|
||||||
|
Waterdeep.Types,
|
||||||
|
Waterdeep.Util
|
||||||
other-extensions: FlexibleContexts,
|
other-extensions: FlexibleContexts,
|
||||||
FlexibleInstances,
|
FlexibleInstances,
|
||||||
GADTs,
|
GADTs,
|
||||||
|
|
@ -25,16 +33,16 @@ executable waterdeep
|
||||||
RankNTypes,
|
RankNTypes,
|
||||||
TemplateHaskell,
|
TemplateHaskell,
|
||||||
TupleSections
|
TupleSections
|
||||||
build-depends: base >=4.6 && <4.8,
|
build-depends: base >=4.6 && <4.9,
|
||||||
MonadPrompt >=1.0 && <1.1,
|
MonadPrompt >=1.0 && <1.1,
|
||||||
MonadRandom >=0.1 && <0.4,
|
MonadRandom >=0.1 && <0.5,
|
||||||
containers >=0.5 && <0.6,
|
containers >=0.5 && <0.6,
|
||||||
lens-family >=1.0 && <1.3,
|
lens-family >=1.0 && <1.3,
|
||||||
lens-family-th >=0.3 && <0.5,
|
lens-family-th >=0.3 && <0.5,
|
||||||
mtl >=2.1 && <2.2,
|
mtl >=2.1 && <2.3,
|
||||||
multiset >=0.2 && <0.3,
|
multiset >=0.2 && <0.4,
|
||||||
random >=1.0 && <1.1,
|
random >=1.0 && <1.2,
|
||||||
random-shuffle >=0.0 && <0.1,
|
random-shuffle >=0.0 && <0.1,
|
||||||
transformers >=0.3 && <0.4
|
transformers >=0.3 && <0.5
|
||||||
hs-source-dirs: src
|
hs-source-dirs: src
|
||||||
default-language: Haskell2010
|
default-language: Haskell2010
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue