-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | A type for pure code that can fail. -- -- This is a very simple type: -- --
--   data Exceptional x
--     = Failure String
--     | Success x
--   
-- -- It's much like Maybe, except instead of Nothing, we -- have Failure String. -- -- A comparison could also be made to Either String. I made this -- library because I was dissatisfied with the Monad instance -- for Either. In this type, fail = Failure. It's -- rather simple. -- --

Changes ===

-- -- @package exceptional @version 0.1.0.1 module Control.Exceptional -- | This is basically specialized 'Either String', or Maybe with -- error messages. data Exceptional x [Failure] :: String -> Exceptional x [Success] :: x -> Exceptional x instance Read x => Read (Exceptional x) instance Show x => Show (Exceptional x) instance Eq x => Eq (Exceptional x) instance Functor Exceptional instance Applicative Exceptional instance Alternative Exceptional instance Monad Exceptional