| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Polysemy.FS
Documentation
data FSExist m a where Source #
Constructors
| DoesFileExist :: Path b File -> FSExist m Bool | |
| DoesDirExist :: Path b Dir -> FSExist m Bool |
doesDirExist :: forall r b. MemberWithError FSExist r => Path b Dir -> Sem r Bool Source #
doesFileExist :: forall r b. MemberWithError FSExist r => Path b File -> Sem r Bool Source #
data FSRead m a where Source #
Constructors
| ReadFileBS :: Path b File -> FSRead m ByteString | |
| ReadFileUtf8 :: Path b File -> FSRead m Text |
readFileUtf8 :: forall r b. MemberWithError FSRead r => Path b File -> Sem r Text Source #
readFileBS :: forall r b. MemberWithError FSRead r => Path b File -> Sem r ByteString Source #
data FSWrite m a where Source #
Constructors
| WriteFileBS :: Path b File -> ByteString -> FSWrite m () | |
| WriteFileUtf8 :: Path b File -> Text -> FSWrite m () |
writeFileUtf8 :: forall r b. MemberWithError FSWrite r => Path b File -> Text -> Sem r () Source #
writeFileBS :: forall r b. MemberWithError FSWrite r => Path b File -> ByteString -> Sem r () Source #
copyFile :: forall r b b'. MemberWithError FSCopy r => Path b File -> Path b' File -> Sem r () Source #
createTempDirectory :: forall r. MemberWithError FSTemp r => Sem r (Path Abs Dir) Source #
Constructors
| CreateDirectory :: Path b Dir -> FSDir m () | |
| RemoveDirectory :: Path b Dir -> FSDir m () |
removeDirectory :: forall r b. MemberWithError FSDir r => Path b Dir -> Sem r () Source #
createDirectory :: forall r b. MemberWithError FSDir r => Path b Dir -> Sem r () Source #