typecheck-plugin-nat-simple-0.1.0.2: Simple type check plugin which calculate addition, subtraction and less-or-equal-than
Safe HaskellSafe-Inferred
LanguageHaskell2010

Control.Monad.Try

Synopsis

DATA TRY

data Try e w a Source #

Instances

Instances details
Monoid w => Monad (Try e w) Source # 
Instance details

Defined in Control.Monad.Try

Methods

(>>=) :: Try e w a -> (a -> Try e w b) -> Try e w b #

(>>) :: Try e w a -> Try e w b -> Try e w b #

return :: a -> Try e w a #

Functor (Try e w) Source # 
Instance details

Defined in Control.Monad.Try

Methods

fmap :: (a -> b) -> Try e w a -> Try e w b #

(<$) :: a -> Try e w b -> Try e w a #

Monoid w => Applicative (Try e w) Source # 
Instance details

Defined in Control.Monad.Try

Methods

pure :: a -> Try e w a #

(<*>) :: Try e w (a -> b) -> Try e w a -> Try e w b #

liftA2 :: (a -> b -> c) -> Try e w a -> Try e w b -> Try e w c #

(*>) :: Try e w a -> Try e w b -> Try e w b #

(<*) :: Try e w a -> Try e w b -> Try e w a #

Monoid w => Alternative (Try w w) Source # 
Instance details

Defined in Control.Monad.Try

Methods

empty :: Try w w a #

(<|>) :: Try w w a -> Try w w a -> Try w w a #

some :: Try w w a -> Try w w [a] #

many :: Try w w a -> Try w w [a] #

Monoid w => MonadPlus (Try w w) Source # 
Instance details

Defined in Control.Monad.Try

Methods

mzero :: Try w w a #

mplus :: Try w w a -> Try w w a -> Try w w a #

(Show e, Show a, Show w) => Show (Try e w a) Source # 
Instance details

Defined in Control.Monad.Try

Methods

showsPrec :: Int -> Try e w a -> ShowS #

show :: Try e w a -> String #

showList :: [Try e w a] -> ShowS #

maybeToTry :: Monoid w => e -> Maybe a -> Try e w a Source #

RUN TRY

runTry :: Try e w a -> (Either e a, w) Source #

gatherSuccess :: (Monoid w, Set w w) => [Try w w a] -> ([a], w) Source #

THROW AND CATCH ERROR

throw :: Monoid w => e -> Try e w a Source #

catch :: Semigroup w => Try e w a -> (e -> Try e w a) -> Try e w a Source #

rights :: (Monoid w, Set w w) => [Try w w a] -> Try w w [a] Source #

WRITE AND GET LOG

class Set x xs Source #

Minimal complete definition

set

Instances

Instances details
Set x x Source # 
Instance details

Defined in Control.Monad.Try

Methods

set :: x -> x

(Monoid y, Set x xs) => Set x (y, xs) Source # 
Instance details

Defined in Control.Monad.Try

Methods

set :: x -> (y, xs)

Monoid xs => Set x (x, xs) Source # 
Instance details

Defined in Control.Monad.Try

Methods

set :: x -> (x, xs)

tell :: Set w ws => w -> Try e ws () Source #

partial :: Try e (w, ws) a -> Try e ws (Either e a, w) Source #

TOOL

cons :: (Monoid w, Set w w) => Either w a -> [a] -> Try w w [a] Source #