| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Axel.Eff.FileSystem
Documentation
data FileSystem a where Source #
Constructors
| 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 () |
setCurrentDirectory :: forall effs. Member FileSystem effs => FilePath -> Eff effs () Source #
removeFile :: forall effs. Member FileSystem effs => FilePath -> Eff effs () Source #
getTemporaryDirectory :: forall effs. Member FileSystem effs => Eff effs FilePath Source #
getDirectoryContents :: forall effs. Member FileSystem effs => FilePath -> Eff effs [FilePath] Source #
getCurrentDirectory :: forall effs. Member FileSystem effs => Eff effs FilePath Source #
doesDirectoryExist :: forall effs. Member FileSystem effs => FilePath -> Eff effs Bool Source #
createDirectoryIfMissing :: forall effs. Member FileSystem effs => Bool -> 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 #