Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.6.0.0 support data-diverse-3.0.0.0 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions parameterized.cabal
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: parameterized
version: 0.5.0.0
version: 0.6.0.0
synopsis: Parameterized/indexed monoids and monads using only a single parameter type variable.
description: Parameterized/indexed monoids and monads using only a single parameter type variable.

Expand All @@ -25,7 +25,7 @@ library
Parameterized.Control.Monad.Trans.Reader
Parameterized.Control.Monad.Trans.State.Strict
build-depends: base >= 4.7 && < 5
, data-diverse >= 2.0.0.0
, data-diverse >= 3.0.0.0
, transformers >= 0.5.2.0
ghc-options: -Wall
default-language: Haskell2010
Expand Down
4 changes: 2 additions & 2 deletions test/Parameterized/Control/Monad/Trans/Reader/ReaderSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@ whichIntBoolStringReader = do
manyIntMaybeReader :: ReaderT (Many '[Int]) Maybe String
manyIntMaybeReader = do
a <- ask
let r = fetch @Int a
let r = grab @Int a
case r of
0 -> empty
r' -> pure $ show r'

manyBoolMaybeReader :: ReaderT (Many '[Bool]) Maybe String
manyBoolMaybeReader = do
a <- ask
let r = fetch @Bool a
let r = grab @Bool a
case r of
False -> empty
r' -> pure $ show r'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ main = hspec spec
manyIntMaybeState :: StateT (Many '[Int]) Maybe String
manyIntMaybeState= do
s <- get
let r = fetch @Int s
let r = grab @Int s
case r of
0 -> empty
r' -> do
Expand All @@ -36,7 +36,7 @@ manyIntMaybeState= do
manyBoolMaybeState :: StateT (Many '[Bool]) Maybe String
manyBoolMaybeState = do
s <- get
let r = fetch @Bool s
let r = grab @Bool s
case r of
False -> empty
r' -> do
Expand Down