phatsort-0.5.0.1: FAT filesystem sort utility
CopyrightCopyright (c) 2019-2022 Travis Cardwell
LicenseMIT
Safe HaskellSafe-Inferred
LanguageHaskell2010

PhatSort.Monad.Trans.Error

Contents

Description

 
Synopsis

ErrorT

type ErrorT = ExceptT String Source #

Transformer used to manage errors: ExceptT String

Since: 0.5.0.0

API

errorT :: Monad m => m (Either String a) -> ErrorT m a Source #

Manage String errors of an action

Since: 0.5.0.0

errorTE :: (Exception e, Monad m) => m (Either e a) -> ErrorT m a Source #

Manage Exception errors of an action

Since: 0.5.0.0

lift :: Monad m => m a -> ErrorT m a Source #

Lift an action without errors

Since: 0.5.0.0

liftEither :: Monad m => Either String a -> ErrorT m a Source #

Manage String errors

Since: 0.5.0.0

liftEitherE :: (Exception e, Monad m) => Either e a -> ErrorT m a Source #

Manage Exception errors

Since: 0.5.0.0

run :: Monad m => ErrorT m a -> m (Either String a) Source #

Run the transformer

Since: 0.5.0.0

throw :: Monad m => String -> ErrorT m a Source #

Throw a String error

Since: 0.5.0.0

throwE :: (Exception e, Monad m) => e -> ErrorT m a Source #

Throw an Exception error

Since: 0.5.0.0