in-other-words-plugin-0.1.0.0: Disambiguate obvious uses of effects when using in-other-words.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Control.Effect.Plugin.Fundep.Utils

Synopsis

Documentation

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

Returns the head of the list iff there is exactly one element.

whenA :: (Monad m, Alternative z) => Bool -> m a -> m (z a) Source #

Like when, but in the context of an Alternative.

countLength :: Eq a => [a] -> [(a, Int)] Source #

Count the number of times a is present in the list.