Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
data FileSystem a where Source #
CopyFile :: FilePath -> FilePath -> FileSystem () | |
CreateDirectoryIfMissing :: Bool -> FilePath -> FileSystem () | |
DoesDirectoryExist :: FilePath -> FileSystem Bool | |
GetCurrentDirectory :: FileSystem FilePath | |
GetDirectoryContents :: FilePath -> FileSystem [FilePath] | |
GetTemporaryDirectory :: FileSystem FilePath | |
ReadFile :: FilePath -> FileSystem String | |
RemoveFile :: FilePath -> FileSystem () | |
SetCurrentDirectory :: FilePath -> FileSystem () | |
WriteFile :: String -> FilePath -> FileSystem () |
createDirectoryIfMissing :: Member FileSystem effs => Bool -> FilePath -> Eff effs () Source #
doesDirectoryExist :: Member FileSystem effs => FilePath -> Eff effs Bool Source #
getCurrentDirectory :: Member FileSystem effs => Eff effs FilePath Source #
getDirectoryContents :: Member FileSystem effs => FilePath -> Eff effs [FilePath] Source #
getTemporaryDirectory :: Member FileSystem effs => Eff effs FilePath Source #
removeFile :: Member FileSystem effs => FilePath -> Eff effs () Source #
setCurrentDirectory :: Member FileSystem effs => FilePath -> Eff effs () Source #
runEff :: LastMember IO effs => Eff (FileSystem ': effs) ~> Eff effs Source #
getDirectoryContentsRec :: Member FileSystem effs => FilePath -> Eff effs [FilePath] Source #
withCurrentDirectory :: Member FileSystem effs => FilePath -> Eff effs a -> Eff effs a Source #
withTemporaryDirectory :: Member FileSystem effs => (FilePath -> Eff effs a) -> Eff effs a Source #