yjtools-0.9: some tools for Monad, List, Tuple and so on.

Data.Function.Tools

Documentation

const2 :: a -> b -> c -> aSource

applyWhen :: Bool -> (a -> a) -> a -> aSource

applyUnless :: Bool -> (a -> a) -> a -> aSource

apply2way :: (a -> b -> c) -> (d -> a) -> (d -> b) -> d -> cSource