Maintainer | bastiaan.heeren@ou.nl |
---|---|

Stability | provisional |

Portability | portable (depends on ghc) |

Safe Haskell | Safe |

Language | Haskell98 |

## Synopsis

- safeHead :: [a] -> Maybe a
- returnOnJustM :: (Monad m, Show a) => (a -> m (Maybe b)) -> [a] -> m (Maybe (b, [a]))
- groupings :: [a] -> [b] -> [[(a, b)]]
- cartProd :: [a] -> [b] -> [(a, b)]
- selections :: [a] -> [(a, [a])]
- safeSingleton :: [a] -> Maybe a
- safeLast :: [a] -> Maybe a
- appLast :: (a -> a) -> [a] -> [a]
- modifyAt :: Int -> (a -> a) -> [a] -> [a]
- index :: Eq a => [a] -> a -> Maybe Int
- concatMapM :: Monad m => (a -> m [b]) -> [a] -> m [b]
- groupBy' :: (a -> a -> Bool) -> [a] -> [[a]]
- orderBy :: Ord b => (a -> b) -> [a] -> [(b, [a])]

# Documentation

selections :: [a] -> [(a, [a])] Source #

safeSingleton :: [a] -> Maybe a Source #

concatMapM :: Monad m => (a -> m [b]) -> [a] -> m [b] Source #

Monadic `concatMap`

.