|
Org.Org.Semantic.HBase.Category.MonadReference |
|
|
|
|
|
Synopsis |
|
|
|
Documentation |
|
data Ref m a |
reference structure | Constructors | MkRef | | getRef :: (m a) | | setRef :: (a -> m ()) | |
|
| Instances | |
|
|
class Monad m => MonadGettableReference m r where |
| Methods | get :: forall a . r a -> m a |
| | Instances | |
|
|
class Monad m => MonadSettableReference m r where |
| Methods | set :: forall a . r a -> a -> m () |
| | Instances | |
|
|
class (MonadGettableReference m r, MonadSettableReference m r) => MonadFixedReference m r |
|
|
modify :: MonadFixedReference m r => r a -> (a -> m a) -> m () |
|
push :: MonadFixedReference m r => r [a] -> a -> m () |
|
pop :: MonadFixedReference m r => r [a] -> m (Maybe a) |
|
toRef :: MonadFixedReference m r => r a -> Ref m a |
|
refBind :: MonadFixedReference m r => m a -> (a -> r b) -> Ref m b |
|
class MonadFixedReference m r => SingleMonadReference m r | r -> m |
|
|
get1 :: SingleMonadReference m r => r a -> m a |
|
set1 :: SingleMonadReference m r => r a -> a -> m () |
|
remonadRef :: (Monad m1, Monad m2) => (forall a . m1 a -> m2 a) -> Ref m1 b -> Ref m2 b |
|
liftRef :: LiftedMonad m1 m2 => Ref m1 a -> Ref m2 a |
|
class Monad m => MonadCreatable m r where |
|
|
class (MonadCreatable m r, MonadFixedReference m r) => MonadFullReference m r |
|
|
class MonadFullReference m r => MonadStandardReference m r | m -> r |
The MonadStandardReference for a monad is a simple memory-base
MonadFullReference. An example is IORef for the IO monad. | | Instances | |
|
|
newStd :: MonadStandardReference m r => a -> m (r a) |
|
newStdRef :: MonadStandardReference m r => a -> m (Ref m a) |
|
makeSingleEvaluator :: MonadStandardReference m r => m a -> m (m a) |
|
class EqualReference r where |
| Methods | equalReference :: r a -> r a -> Bool |
| | Instances | |
|
|
Produced by Haddock version 0.6 |