mirror of https://github.com/zachjs/sv2v.git
use bimapM for mapBothM
This commit is contained in:
parent
306d71334b
commit
536eba46b9
|
|
@ -520,10 +520,7 @@ collectLHSExprsM :: Monad m => CollectorM m Expr -> CollectorM m LHS
|
|||
collectLHSExprsM = collectify traverseLHSExprsM
|
||||
|
||||
mapBothM :: Monad m => MapperM m t -> MapperM m (t, t)
|
||||
mapBothM mapper (a, b) = do
|
||||
a' <- mapper a
|
||||
b' <- mapper b
|
||||
return (a', b')
|
||||
mapBothM mapper = bimapM mapper mapper
|
||||
|
||||
traverseExprsM :: Monad m => MapperM m Expr -> MapperM m ModuleItem
|
||||
traverseExprsM exprMapper =
|
||||
|
|
|
|||
Loading…
Reference in New Issue