Skip to content

Commit

Permalink
fix stack issue for listT map (#18)
Browse files Browse the repository at this point in the history
fix #16
  • Loading branch information
safareli authored Jun 10, 2019
1 parent 782892c commit 14eb29f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"test": "pulp test"
},
"devDependencies": {
"purescript-psa": "^0.6.0",
"purescript": "^0.12.0",
"pulp": "^12.2.0"
"purescript-psa": "^0.7.3",
"purescript": "^0.13.0",
"pulp": "^13.0.0"
}
}
6 changes: 3 additions & 3 deletions src/Options/Applicative/Internal.purs
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ runListT xs = do
TCons x xt -> liftM1 (List.Cons x) (runListT xt)

instance listTFunctor :: Monad m => Functor (ListT m) where
map f = ListT
<<< liftM1 (bimapTStep f (map f))
<<< stepListT
map f v = ListT
$ liftM1 (bimapTStep f (map f))
$ stepListT v

instance listTApply :: Monad m => Apply (ListT m) where
apply = ap
Expand Down

0 comments on commit 14eb29f

Please sign in to comment.