Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data ZiftToken = ZiftToken [LR] (Maybe ZiftOutput)
- data ZiftOutput = ZiftOutput {
- outputColors :: [SGR]
- outputMessage :: String
- data ZiftContext = ZiftContext {}
- data LR
- data Zift a where
- data ZiftResult a
- = ZiftSuccess a
- | ZiftFailed String
Documentation
ZiftToken [LR] (Maybe ZiftOutput) |
data ZiftOutput Source #
ZiftOutput | |
|
ZiftPure :: a -> Zift a | |
ZiftCtx :: Zift ZiftContext | |
ZiftPrint :: ZiftOutput -> Zift () | |
ZiftFail :: String -> Zift a | |
ZiftIO :: IO a -> Zift a | |
ZiftFmap :: (a -> b) -> Zift a -> Zift b | |
ZiftApp :: Zift (a -> b) -> Zift a -> Zift b | |
ZiftBind :: Zift a -> (a -> Zift b) -> Zift b |
Monad Zift Source # |
|
Functor Zift Source # | |
MonadFail Zift Source # | A To make a Zift action fail, you can use the The implementation uses the given string as the message that is shown at the very end of the run. |
Applicative Zift Source # |
The implementation automatically parallelises the arguments of the
|
MonadIO Zift Source # | Any IO action can be part of a This is the most important instance for the end user. liftIO :: IO a -> Zift a allows embedding arbitrary IO actions inside a The implementation also ensures that exceptions are caught. |
MonadThrow Zift Source # | |
Monoid a => Monoid (Zift a) Source # | |
data ZiftResult a Source #
Monad ZiftResult Source # | |
Functor ZiftResult Source # | |
MonadFail ZiftResult Source # | |
Applicative ZiftResult Source # | |
Eq a => Eq (ZiftResult a) Source # | |
Show a => Show (ZiftResult a) Source # | |
Generic (ZiftResult a) Source # | |
Monoid a => Monoid (ZiftResult a) Source # | |
Validity a => Validity (ZiftResult a) Source # | |
type Rep (ZiftResult a) Source # | |