idris-1.3.2: Functional Programming Language with Dependent Types

LicenseBSD3
MaintainerThe Idris Community.
Safe HaskellSafe
LanguageHaskell2010

Util.System

Description

 
Synopsis

Documentation

tempfile :: String -> IO (FilePath, Handle) Source #

Create a temp file with the extensiom ext (in the format ".xxx")

withTempdir :: String -> (FilePath -> IO a) -> IO a Source #

catchIO :: IO a -> (IOError -> IO a) -> IO a Source #

writeSource :: FilePath -> String -> IO () Source #

Write a source file, same as writeFile except the encoding is set to utf-8

writeSourceText :: FilePath -> Text -> IO () Source #

Write a utf-8 source file from Text

readSource :: FilePath -> IO String Source #

Read a source file, same as readFile but make sure the encoding is utf-8.

readSourceStrict :: FilePath -> IO String Source #

Read a source file, make sure that the it all has been read before exiting the function. | This is useful when we want to write the file again and need it to be closed.