agda-unused-0.2.0: Check for unused code in an Agda project.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Agda.Unused.Utils

Description

Utility functions for Maybe, Either, and Map types.

Synopsis

Maybe

liftMaybe :: MonadError e m => e -> Maybe a -> m a Source #

Lift a Maybe type to an error monad by throwing a fixed error.

Either

mapLeft :: (e -> f) -> Either e a -> Either f a Source #

Map the left component of an Either type.

List

stripSuffix :: Eq a => [a] -> [a] -> Maybe [a] Source #

Drop the given suffix from a list.