Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Make a = Make {}
- runMake :: Options -> Make a -> IO (Either MultipleErrors a, MultipleErrors)
- makeIO :: (IOError -> ErrorMessage) -> IO a -> Make a
- readTextFile :: FilePath -> Make ByteString
Implementation of Make API using files on disk
A monad for running make actions
Instances
Monad Make Source # | |
Functor Make Source # | |
Applicative Make Source # | |
MonadIO Make Source # | |
Defined in Language.PureScript.Make.Monad | |
MonadError MultipleErrors Make Source # | |
Defined in Language.PureScript.Make.Monad throwError :: MultipleErrors -> Make a # catchError :: Make a -> (MultipleErrors -> Make a) -> Make a # | |
MonadReader Options Make Source # | |
MonadBase IO Make Source # | |
Defined in Language.PureScript.Make.Monad | |
MonadBaseControl IO Make Source # | |
MonadWriter MultipleErrors Make Source # | |
Defined in Language.PureScript.Make.Monad writer :: (a, MultipleErrors) -> Make a # tell :: MultipleErrors -> Make () # listen :: Make a -> Make (a, MultipleErrors) # pass :: Make (a, MultipleErrors -> MultipleErrors) -> Make a # | |
type StM Make a Source # | |
Defined in Language.PureScript.Make.Monad |
runMake :: Options -> Make a -> IO (Either MultipleErrors a, MultipleErrors) Source #
Execute a Make
monad, returning either errors, or the result of the compile plus any warnings.
makeIO :: (IOError -> ErrorMessage) -> IO a -> Make a Source #
Run an IO
action in the Make
monad, by specifying how IO errors should
be rendered as ErrorMessage
values.
readTextFile :: FilePath -> Make ByteString Source #
Read a text file in the Make
monad, capturing any errors using the
MonadError
instance.