purescript-0.15.15: PureScript Programming Language Compiler

Safe Haskell | None
Language | Haskell2010

Language.PureScript.Traversals

Description

Common functions for implementing generic traversals

# Documentation

sndM :: Functor f => (b -> f c) -> (a, b) -> f (a, c) #

sndM' :: Functor f => (a -> b -> f c) -> (a, b) -> f (a, c) #

thirdM :: Functor f => (c -> f d) -> (a, b, c) -> f (a, b, d) #

pairM :: Applicative f => (a -> f c) -> (b -> f d) -> (a, b) -> f (c, d) #

eitherM :: Applicative f => (a -> f c) -> (b -> f d) -> Either a b -> f (Either c d) #

defS :: Monad m => st -> val -> m (st, val) #