License | GPL-3.0-or-later |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
Copyright: Oleg Grenrus
Synopsis
- class (MonadReader Options m, MonadError Error m) => MonadCabalFmt m where
- listDirectory :: FilePath -> m [FilePath]
- doesDirectoryExist :: FilePath -> m Bool
- displayWarning :: String -> m ()
- getFiles :: MonadCabalFmt m => FilePath -> m [FilePath]
- data CabalFmt a
- runCabalFmt :: Options -> CabalFmt a -> Either Error a
- data CabalFmtIO a
- runCabalFmtIO :: Options -> CabalFmtIO a -> IO (Either Error a)
Monad class
class (MonadReader Options m, MonadError Error m) => MonadCabalFmt m where Source #
listDirectory :: FilePath -> m [FilePath] Source #
doesDirectoryExist :: FilePath -> m Bool Source #
displayWarning :: String -> m () Source #
Instances
MonadCabalFmt CabalFmtIO Source # | |
Defined in CabalFmt.Monad listDirectory :: FilePath -> CabalFmtIO [FilePath] Source # doesDirectoryExist :: FilePath -> CabalFmtIO Bool Source # displayWarning :: String -> CabalFmtIO () Source # | |
MonadCabalFmt CabalFmt Source # | |
Defined in CabalFmt.Monad |
Pure implementation
Pure MonadCabalFmt
.
listDirectory
always return empty list.
Instances
Monad CabalFmt Source # | |
Functor CabalFmt Source # | |
Applicative CabalFmt Source # | |
MonadCabalFmt CabalFmt Source # | |
Defined in CabalFmt.Monad | |
MonadReader Options CabalFmt Source # | |
MonadError Error CabalFmt Source # | |
Defined in CabalFmt.Monad throwError :: Error -> CabalFmt a # catchError :: CabalFmt a -> (Error -> CabalFmt a) -> CabalFmt a # |
IO implementation
data CabalFmtIO a Source #
Instances
runCabalFmtIO :: Options -> CabalFmtIO a -> IO (Either Error a) Source #