relude-1.2.2.0: Safe, performant, user-friendly and lightweight Haskell Standard Library

Copyright | (c) 2016 Stephen Diehl (c) 2016-2018 Serokell (c) 2018-2023 Kowainik
License | MIT
Maintainer | Kowainik <xrom.xkov@gmail.com>
Stability | Stable
Portability | Portable
Safe Haskell | Safe
Language | Haskell2010

Relude.Lifted.File

Description

Lifted versions of functions working with files and common IO.

Synopsis

- readFile :: MonadIO m => FilePath -> m String
- readFile' :: MonadIO m => FilePath -> m String
- writeFile :: MonadIO m => FilePath -> String -> m ()
- appendFile :: MonadIO m => FilePath -> String -> m ()

# Documentation

readFile :: MonadIO m => FilePath -> m String #

Warning: `readFile` depends on the system's locale settings and can throw unexpected exceptions.Use `readFileBS` or `readFileLBS` instead.

Lifted version of `readFile`.

readFile' :: MonadIO m => FilePath -> m String #

Warning: readFile' depends on the system's locale settings and can throw unexpected exceptions.Use `readFileBS` or `readFileLBS` instead.

Lifted version of `readFile'`. Strict version of `readFile`.

Since: 1.0.0.0

writeFile :: MonadIO m => FilePath -> String -> m () #

Lifted version of `writeFile`.

appendFile :: MonadIO m => FilePath -> String -> m () #

Lifted version of `appendFile`.