relude-1.2.0.0: Safe, performant, user-friendly and lightweight Haskell Standard Library
Copyright(c) 2016 Stephen Diehl
(c) 2016-2018 Serokell
(c) 2018-2023 Kowainik
LicenseMIT
MaintainerKowainik <xrom.xkov@gmail.com>
StabilityStable
PortabilityPortable
Safe HaskellSafe
LanguageHaskell2010

Relude.Lifted.File

Description

Lifted versions of functions working with files and common IO.

Synopsis

Documentation

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

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 Source #

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 () Source #

Lifted version of writeFile.

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

Lifted version of appendFile.