eve-0.1.0: An extensible event framework
Eve.Internal.Actions
newtype Action zoomed a Source #
Constructors
Fields
Instances
Methods
get :: Action zoomed zoomed #
put :: zoomed -> Action zoomed () #
state :: (zoomed -> (a, zoomed)) -> Action zoomed a #
wrap :: ActionF (Action zoomed a) -> Action zoomed a #
(>>=) :: Action zoomed a -> (a -> Action zoomed b) -> Action zoomed b #
(>>) :: Action zoomed a -> Action zoomed b -> Action zoomed b #
return :: a -> Action zoomed a #
fail :: String -> Action zoomed a #
fmap :: (a -> b) -> Action zoomed a -> Action zoomed b #
(<$) :: a -> Action zoomed b -> Action zoomed a #
pure :: a -> Action zoomed a #
(<*>) :: Action zoomed (a -> b) -> Action zoomed a -> Action zoomed b #
(*>) :: Action zoomed a -> Action zoomed b -> Action zoomed b #
(<*) :: Action zoomed a -> Action zoomed b -> Action zoomed a #
liftIO :: IO a -> Action zoomed a #
zoom :: LensLike' (Zoomed (Action s) c) t s -> Action s c -> Action t c #
newtype ActionF next Source #
fmap :: (a -> b) -> ActionF a -> ActionF b #
(<$) :: a -> ActionF b -> ActionF a #
pure :: a -> ActionF a #
(<*>) :: ActionF (a -> b) -> ActionF a -> ActionF b #
(*>) :: ActionF a -> ActionF b -> ActionF b #
(<*) :: ActionF a -> ActionF b -> ActionF a #
type App a = Action AppState a Source #
execApp :: AppState -> Action AppState a -> IO a Source #
data AppState Source #
exts :: Lens' AppState Exts Source #
asyncQueue :: Lens' AppState (Output (App ())) Source #
liftAction :: Action AppState a -> Action zoomed a Source #
runAction :: Zoom m n s t => LensLike' (Zoomed m c) t s -> m c -> n c Source #
exit :: App () Source #
isExiting :: App Bool Source #
newtype Exiting Source #
(==) :: Exiting -> Exiting -> Bool #
(/=) :: Exiting -> Exiting -> Bool #
showsPrec :: Int -> Exiting -> ShowS #
show :: Exiting -> String #
showList :: [Exiting] -> ShowS #
def :: Exiting #