Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
- data Instance f g where
- invokeOn :: (MonadIO m, MonadMask m) => (forall x. g x -> m x) -> Instance f g -> f a -> m a
- invokeOnSTM :: (forall x. g x -> STM x) -> Instance f g -> f a -> STM a
- (..-) :: MonadSTM m => Instance f STM -> f a -> m a
- (.-) :: (MonadIO m, MonadMask m) => Instance f m -> f a -> m a
- new :: MonadIO m => Object f g -> m (Instance f g)
- newSettle :: MonadIO m => Object f m -> m (Instance f m)
- newSTM :: Object f g -> STM (Instance f g)
Documentation
data Instance f g where Source
TMVar-based instance
invokeOn :: (MonadIO m, MonadMask m) => (forall x. g x -> m x) -> Instance f g -> f a -> m a Source
Invoke a method with an explicit landing function.
invokeOnSTM :: (forall x. g x -> STM x) -> Instance f g -> f a -> STM a Source
Invoke a method with an explicit landing function.