Language.Haskell.GhcMod.Monad.State

ghc-mod-5.6.0.0: Happy Haskell Programming

Safe Haskell | None
Language | Haskell2010

Language.Haskell.GhcMod.Monad.State

# Documentation

class Monad m => GmState m where #

Minimal complete definition

gmsState | gmsGet, gmsPut

Methods

gmsGet :: m GhcModState #

gmsPut :: GhcModState -> m () #

gmsState :: (GhcModState -> (a, GhcModState)) -> m a #

Instances

GmState m => GmState (MaybeT m) # |
Methods gmsGet :: MaybeT m GhcModState # gmsPut :: GhcModState -> MaybeT m () # gmsState :: (GhcModState -> (a, GhcModState)) -> MaybeT m a #
(Monad m, GmState (GhcModT m)) => GmState (GmlT m) # |
Methods gmsGet :: GmlT m GhcModState # gmsPut :: GhcModState -> GmlT m () # gmsState :: (GhcModState -> (a, GhcModState)) -> GmlT m a #
Monad m => GmState (GmT m) # |
Methods gmsGet :: GmT m GhcModState # gmsPut :: GhcModState -> GmT m () # gmsState :: (GhcModState -> (a, GhcModState)) -> GmT m a #
GmState m => GmState (StateT s m) # |
Methods gmsGet :: StateT s m GhcModState # gmsPut :: GhcModState -> StateT s m () # gmsState :: (GhcModState -> (a, GhcModState)) -> StateT s m a #
Monad m => GmState (StateT GhcModState m) # |
Methods gmsGet :: StateT GhcModState m GhcModState # gmsPut :: GhcModState -> StateT GhcModState m () # gmsState :: (GhcModState -> (a, GhcModState)) -> StateT GhcModState m a #