Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class MonadFail m => MonadFile m where Source #
Nothing
readFile :: FilePath -> m ByteString Source #
default readFile :: (MonadTrans t, MonadFile m', m ~ t m') => FilePath -> m ByteString Source #
listDirectory :: FilePath -> m [FilePath] Source #
default listDirectory :: (MonadTrans t, MonadFile m', m ~ t m') => FilePath -> m [FilePath] Source #
getCurrentDirectory :: m FilePath Source #
default getCurrentDirectory :: (MonadTrans t, MonadFile m', m ~ t m') => m FilePath Source #
canonicalizePath :: FilePath -> m FilePath Source #
default canonicalizePath :: (MonadTrans t, MonadFile m', m ~ t m') => FilePath -> m FilePath Source #
getHomeDirectory :: m FilePath Source #
default getHomeDirectory :: (MonadTrans t, MonadFile m', m ~ t m') => m FilePath Source #
doesPathExist :: FilePath -> m Bool Source #
default doesPathExist :: (MonadTrans t, MonadFile m', m ~ t m') => FilePath -> m Bool Source #
doesFileExist :: FilePath -> m Bool Source #
default doesFileExist :: (MonadTrans t, MonadFile m', m ~ t m') => FilePath -> m Bool Source #
doesDirectoryExist :: FilePath -> m Bool Source #
default doesDirectoryExist :: (MonadTrans t, MonadFile m', m ~ t m') => FilePath -> m Bool Source #
getSymbolicLinkStatus :: FilePath -> m FileStatus Source #
default getSymbolicLinkStatus :: (MonadTrans t, MonadFile m', m ~ t m') => FilePath -> m FileStatus Source #