| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Zifter.Zift.Types
- data ZiftOutput = ZiftOutput {
- outputColors :: [SGR]
- outputMessage :: String
- data ZiftContext = ZiftContext {}
- data LMR
- newtype ZiftState = ZiftState {
- bufferedOutput :: [ZiftOutput]
- newtype Zift a = Zift {
- zift :: ZiftContext -> ZiftState -> IO (ZiftResult a, ZiftState)
- data ZiftResult a
- = ZiftSuccess a
- | ZiftFailed String
- tryFlushZiftBuffer :: ZiftContext -> ZiftState -> IO ZiftState
- flushable :: [LMR] -> Bool
Documentation
data ZiftOutput Source #
Constructors
| ZiftOutput | |
Fields
| |
Instances
Constructors
| ZiftState | |
Fields
| |
Constructors
| Zift | |
Fields
| |
Instances
| 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 # | |
| Generic (Zift a) Source # | |
| Monoid a => Monoid (Zift a) Source # | |
| type Rep (Zift a) Source # | |
data ZiftResult a Source #
Constructors
| ZiftSuccess a | |
| ZiftFailed String |
Instances
| 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 # | |
tryFlushZiftBuffer :: ZiftContext -> ZiftState -> IO ZiftState Source #
Internal: do not use yourself.