Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data HandsyF k
- = Command String [String] ByteString ((ExitCode, ByteString, ByteString) -> k)
- | ReadFile String (ByteString -> k)
- | WriteFile String ByteString (() -> k)
- writeFile :: forall m. MonadFree HandsyF m => String -> ByteString -> m ()
- readFile :: forall m. MonadFree HandsyF m => String -> m ByteString
- command :: forall m. MonadFree HandsyF m => String -> [String] -> ByteString -> m (ExitCode, ByteString, ByteString)
- type Handsy = FreeT HandsyF IO
- run :: Handsy a -> IO a
Documentation
Base functor for our dsl
Command String [String] ByteString ((ExitCode, ByteString, ByteString) -> k) | |
ReadFile String (ByteString -> k) | |
WriteFile String ByteString (() -> k) |
command :: forall m. MonadFree HandsyF m => String -> [String] -> ByteString -> m (ExitCode, ByteString, ByteString) Source