Monad m => a -> m a
Evaluate a state computation with the given initial state and return the final state, discarding the final value.
* m s = liftM snd
> (runStateT m
Monadic fold over the elements of a structure, associating to the left, i.e. from left to right.
The foldM function is analogous to foldl, except that its result is encapsulated in a monad. Note that foldM works from left-to-right over the list arguments. This could be an issue
commutative.
> foldM f a1 [x1, x2, ..., xm]
==
> do
> a2 <- f a1 x1
> a3 <- f a2 x2
> ...
> f am xm
If right-to-left evaluation is required, the input list should be reversed.
Monadic fold over the elements of a structure, associating to the right, i.e. from right to left.
Make a generic monadic transformation; start from a type-specific case; resort to return otherwise
Evaluate a state computation with the given initial state and return the final value, discarding the final state.
* m s = liftM fst
> (runStateT m
forever act repeats the action infinitely.
getAuth req fishes out the authority portion of the URL in a request's Host header.
no argument expected
Show more results