Skip to content

Commit 14eb29f

Browse files
authored
fix stack issue for listT map (#18)
fix #16
1 parent 782892c commit 14eb29f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"test": "pulp test"
66
},
77
"devDependencies": {
8-
"purescript-psa": "^0.6.0",
9-
"purescript": "^0.12.0",
10-
"pulp": "^12.2.0"
8+
"purescript-psa": "^0.7.3",
9+
"purescript": "^0.13.0",
10+
"pulp": "^13.0.0"
1111
}
1212
}

src/Options/Applicative/Internal.purs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,9 @@ runListT xs = do
217217
TCons x xt -> liftM1 (List.Cons x) (runListT xt)
218218

219219
instance listTFunctor :: Monad m => Functor (ListT m) where
220-
map f = ListT
221-
<<< liftM1 (bimapTStep f (map f))
222-
<<< stepListT
220+
map f v = ListT
221+
$ liftM1 (bimapTStep f (map f))
222+
$ stepListT v
223223

224224
instance listTApply :: Monad m => Apply (ListT m) where
225225
apply = ap

0 commit comments

Comments
 (0)