mirror of
https://github.com/lexi-lambda/freer-simple.git
synced 2024-09-11 08:05:51 +03:00
Update stack.yml to LTS-12
This commit is contained in:
parent
b906323bd7
commit
d64f89e103
@ -22,6 +22,14 @@ matrix:
|
|||||||
compiler: ": #stack 8.2.1"
|
compiler: ": #stack 8.2.1"
|
||||||
addons: { apt: { packages: [libgmp-dev] } }
|
addons: { apt: { packages: [libgmp-dev] } }
|
||||||
|
|
||||||
|
- env: ARGS="--resolver lts-11"
|
||||||
|
compiler: ": #stack 8.2.2"
|
||||||
|
addons: { apt: { packages: [libgmp-dev] } }
|
||||||
|
|
||||||
|
- env: ARGS="--resolver lts-12"
|
||||||
|
compiler: ": #stack 8.4.3"
|
||||||
|
addons: { apt: { packages: [libgmp-dev] } }
|
||||||
|
|
||||||
- env: ARGS="--resolver nightly"
|
- env: ARGS="--resolver nightly"
|
||||||
compiler: ": #stack nightly"
|
compiler: ": #stack nightly"
|
||||||
addons: { apt: { packages: [libgmp-dev] } }
|
addons: { apt: { packages: [libgmp-dev] } }
|
||||||
|
@ -55,8 +55,8 @@ countDownExcMTL = MTL.runStateT go
|
|||||||
where go = MTL.get >>= (\n -> if n <= (0 :: Int) then MTL.throwError "wat" else MTL.put (n-1) >> go)
|
where go = MTL.get >>= (\n -> if n <= (0 :: Int) then MTL.throwError "wat" else MTL.put (n-1) >> go)
|
||||||
|
|
||||||
countDownExcEE :: Int -> Either String (Int,Int)
|
countDownExcEE :: Int -> Either String (Int,Int)
|
||||||
countDownExcEE start = EE.run $ EE.runExc (EE.runState start go)
|
countDownExcEE start = EE.run $ EE.runError (EE.runState start go)
|
||||||
where go = EE.get >>= (\n -> if n <= (0 :: Int) then EE.throwExc "wat" else EE.put (n-1) >> go)
|
where go = EE.get >>= (\n -> if n <= (0 :: Int) then EE.throwError "wat" else EE.put (n-1) >> go)
|
||||||
|
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
-- Freer: Interpreter --
|
-- Freer: Interpreter --
|
||||||
|
@ -83,7 +83,7 @@ benchmarks:
|
|||||||
ghc-options: -O2
|
ghc-options: -O2
|
||||||
dependencies:
|
dependencies:
|
||||||
- criterion
|
- criterion
|
||||||
- extensible-effects < 2
|
- extensible-effects
|
||||||
- free
|
- free
|
||||||
- freer-simple
|
- freer-simple
|
||||||
- mtl
|
- mtl
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
resolver: lts-10.5
|
resolver: lts-12.8
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
- '.'
|
- '.'
|
||||||
|
|
||||||
extra-deps:
|
extra-deps:
|
||||||
- extensible-effects-1.11.1.0
|
- extensible-effects-3.1.0.0
|
||||||
|
|
||||||
flags: {}
|
flags: {}
|
||||||
extra-package-dbs: []
|
extra-package-dbs: []
|
||||||
|
Loading…
Reference in New Issue
Block a user