- swap :: (a, b) -> (b, a)
- ifSwap :: Bool -> (a, a) -> (a, a)
- dup :: a -> (a, a)
- integralToDouble :: Integral a => a -> Double
- integerToInt :: Integer -> Int
- (<<) :: Monad m => m b -> m a -> m b
- liftM2' :: Monad m => m a -> (a -> b -> c) -> m b -> m c
- liftM2_ :: Monad m => (a -> b -> c) -> m a -> m b -> m ()
- ifM :: Monad m => m Bool -> m a -> m a -> m a
- ifF :: Monad m => a -> (a -> m Bool) -> (a -> m b) -> (a -> m b) -> m b
- whenM :: Monad m => m Bool -> m () -> m ()
- unlessM :: Monad m => m Bool -> m () -> m ()
- zip' :: a -> b -> (a, b)
- zipM' :: Monad m => m a -> m b -> m (a, b)
- firstMap :: (b -> c) -> [(b, d)] -> [(c, d)]
- zipMap :: (a -> b, a -> c) -> a -> (b, c)
- unzipMap :: (a -> (b, c)) -> (a -> b, a -> c)
- trace :: ((a, c) -> (b, c)) -> a -> b
- floorToMultiple :: Integral a => a -> a -> a
- cond :: Monad m => [(Bool, m ())] -> m ()
- condM :: Monad m => [(m Bool, m ())] -> m ()
Documentation
integralToDouble :: Integral a => a -> DoubleSource
Transform Int to Double
integerToInt :: Integer -> IntSource
Integer to Int.
liftM2' :: Monad m => m a -> (a -> b -> c) -> m b -> m cSource
Like LiftM2, but make function at middle of two arguments.
floorToMultiple :: Integral a => a -> a -> aSource
Floor to multiple.