wm8x      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRS T U V W X Y Z [ \ ] ^ _ ` a b c d e f g h i j k l m nopqrs t u vw ;non-portable (multi-param classes, functional dependencies) experimentallibraries@haskell.orgcdd w' is an action that produces the output w. ee m' is an action that executes the action m and adds - its output to the value of the computation. ff m' is an action that executes the action m, which A returns a value and a function, and returns the value, applying  the function to the output. gg f m' is an action that executes the action m and adds  the result of applying f0 to the output to the value of the computation.  g f m = x (id *** f) (e m)hh f m' is an action that executes the action m and  applies the function f) to its output, leaving the return value  unchanged.  h f m = f (x (\x -> (x,f)) m)cdefghcdefghcdefdefgh ;non-portable (multi-param classes, functional dependencies) experimentallibraries@haskell.orgij2Return the state from the internals of the monad. k$Replace the state inside the monad. lMonadic state transformer. 7Maps an old state to a new state inside a state monad. $ The old state is thrown away.  + Main> :t modify ((+1) :: Int -> Int) 1 modify (...) :: (MonadState Int a) => a () This says that  modify (+1) acts over any " Monad that is a member of the  MonadState class,  with an Int state. mBGets specific component of the state, using a projection function  supplied. ijklmijklmijkjklm;non-portable (multi-param classes, functional dependencies) experimentallibraries@haskell.orgnSee examples in Control.Monad.Reader. + Note, the partially applied function type (->) r is a simple reader monad.  See the instance declaration below. o!Retrieves the monad environment. p2Executes a computation in a modified environment. (The function to modify the environment. Reader% to run in the modified environment. q1Retrieves a function of the current environment. 3The selector function to apply to the environment. nopqnopqnopopq;non-portable (multi-param classes, functional dependencies) experimentallibraries@haskell.orgrcdefghijklmnopqrrrportable experimentallibraries@haskell.org/yz{|}~x +non-portable (multi-parameter type classes) experimentallibraries@haskell.orgsAThe strategy of combining computations that can throw exceptions by bypassing bound functions Gfrom the point an exception is thrown to the point that it is handled. 8Is parameterized over the type of error information and the monad type constructor. It is common to use  Data.Either String as the monad type constructor Ifor an error monad in which error descriptions take the form of strings. PIn that case and many other common cases the resulting monad is already defined as an instance of the s class. +You can also define your own error type and/ or use a monad type constructor  other than   or  . CIn these cases you will have to explicitly define instances of the V and/or s classes. tDIs used within a monadic computation to begin exception processing. uMA handler function to handle previous errors and return to normal execution.  A common idiom is:  7 do { action1; action2; action3 } `catchError` handler  where the action functions can call t.  Note that handler2 and the do-block must have the same return type. TUVstuVUTstustutuportable experimentallibraries@haskell.orgvwcallCC" (call-with-current-continuation) D calls a function with the current continuation as its argument. P Provides an escape continuation mechanism for use with Continuation monads. K Escape continuations allow to abort the current computation and return  a value immediately. % They achieve a similar effect to Control.Monad.Error.throwError  and Control.Monad.Error.catchError  within an Control.Monad.Error.Error monad. , Advantage of this function over calling return is that it makes  the continuation explicit, 1 allowing more flexibility and better control  (see examples in Control.Monad.Cont). The standard idiom used with callCC# is to provide a lambda-expression K to name the continuation. Then calling the named continuation anywhere 7 within its scope will escape from the computation, ? even if it is many layers deep within nested computations. vwvwvwwportable experimentallibraries@haskell.org +non-portable (multi-parameter type classes) experimentallibraries@haskell.org:yz{|}~xSTUVWXYstu stuVUTYXWSportable experimentallibraries@haskell.org1yz{|~xOPQRRQPO;non-portable (multi-param classes, functional dependencies) experimentallibraries@haskell.orgiyz{|}~x9:;<=>?@ABCDEcdefghijklmnopqr BA@?>=EDC<;:9;non-portable (multi-param classes, functional dependencies) experimentallibraries@haskell.orgiyz{|}~x9:;<=>?@ABCDEcdefghijklmnopqr;non-portable (multi-param classes, functional dependencies) experimentallibraries@haskell.org=yz{|}~xFGHIJKLMNnopq nopqKJIHNMLGF;non-portable (multi-param classes, functional dependencies) experimentallibraries@haskell.orgiyz{|}~x,-./012345678cdefghijklmnopqr 543210876/.-,;non-portable (multi-param classes, functional dependencies) experimentallibraries@haskell.orgByz{|}~x !"#$%&'()*+ijklmijklm('&%$#+*)"! ;non-portable (multi-param classes, functional dependencies) experimentallibraries@haskell.orgByz{|}~x !"#$%&'()*+ijklm;non-portable (multi-param classes, functional dependencies) experimentallibraries@haskell.orgByz{|}~xijklmijklm;non-portable (multi-param classes, functional dependencies) experimentallibraries@haskell.org[yz{|}~x cdefghcdefgh  ;non-portable (multi-param classes, functional dependencies) experimentallibraries@haskell.org[yz{|}~x cdefgh;non-portable (multi-param classes, functional dependencies) experimentallibraries@haskell.org[yz{|}~xcdefghcdefgh portable experimentallibraries@haskell.org8yz{|~xZ[\]^_`abvw vw_^]\ba`[Z         !"!#!$!%!&!'!(!)!*!+!,!-!-.".#.$.%.&.'.(.).*.+.,.-.-/0/1/2/3/4/5/6/7/8/9/:/;/;<0<1<2<3<4<5<6<7<8<9<:<;<;=>=?=@=A=B=C=D=E=EFGFHFIFIJKJLJMJNJOJPJPQRQSQTQUQVQWQXQYQY Z [ \ ] ^ _ ` a b c defghi j k lmnopqorsortoruorvowxoryorzow{op|o}~opopopopopopopopopopopopopopopopopopopopopopopopopopopopopopopoporoorooooooooooooooooooooooooooooo mtl-2.0.0.0Control.Monad.Writer.StrictControl.Monad.Writer.LazyControl.Monad.State.StrictControl.Monad.State.LazyControl.Monad.RWS.StrictControl.Monad.RWS.LazyControl.Monad.ReaderControl.Monad.ListControl.Monad.ErrorControl.Monad.Error.ClassControl.Monad.ContControl.Monad.Writer.ClassControl.Monad.State.ClassControl.Monad.Reader.ClassControl.Monad.RWS.ClassControl.Monad.Cont.ClassControl.Monad.IdentityControl.Monad.TransControl.Monad.RWSControl.Monad.StateControl.Monad.Writertransformers-0.2.2.0!Control.Monad.Trans.Writer.Strict mapWriterT execWriterT mapWriter execWriter runWriterWriter runWriterTWriterTControl.Monad.Trans.Writer.Lazy Control.Monad.Trans.State.Strict withStateT mapStateT execStateT evalStateT withStatemapState execState evalStaterunStateState runStateTStateTControl.Monad.Trans.State.LazyControl.Monad.Trans.RWS.StrictwithRWSTmapRWSTexecRWSTevalRWSTwithRWSmapRWSexecRWSevalRWSrunRWSRWSrunRWSTRWSTControl.Monad.Trans.RWS.LazyControl.Monad.Trans.Reader withReaderT mapReaderT withReader mapReader runReaderReader runReaderTReaderTControl.Monad.Trans.ListmapListTrunListTListTControl.Monad.Trans.Error mapErrorTstrMsgnoMsgError runErrorTErrorTControl.Monad.Trans.Cont withContTmapContTwithContmapContrunContContrunContTContT MonadWritertelllistenpasslistenscensor MonadStategetputmodifygets MonadReaderasklocalasksMonadRWS MonadError throwError catchError MonadContcallCCbase Control.MonadliftMGHC.Basefail>>=>>returnControl.Monad.FixmfixMonadFunctorMonadFix MonadPlus Data.FunctionfixmfilterapliftM5liftM4liftM3liftM2unlesswhen replicateM_ replicateMfoldM_foldM zipWithM_zipWithM mapAndUnzipMjoinvoidforever<=<>=>msumforM_forMfilterMguardmapM_mapM sequence_sequence=<<mplusmzerofmapData.Functor.Identity runIdentityIdentity Data.EitherEitherStringGHC.IO.ExceptionIOErrorControl.Monad.IO.ClassliftIOMonadIOControl.Monad.Trans.Classlift MonadTrans Data.MonoidmconcatmappendmemptyMonoidgetDualDualappEndoEndogetAllAllgetAnyAnygetSumSum getProductProductgetFirstFirstgetLastLast