Write a string to a file. The file is truncated to zero length before writing begins.
Modulerebase-1.21.2Haskell2010
Rebase.Data.Text.Lazy.IO
- 12 values
- Packagerebase-1.21.2
- Exports12
- LanguageHaskell2010
- LicenceMIT
- SourceIO.hs
Write a string to the end of a file.
Lazily read all user input on stdin as a single string.
Read a single line of user input from stdin.
Read a single line from a handle.
Write a string to a handle.
The interact function takes a function of type Text -> Text
as its argument. The entire input from the standard input device is
passed (lazily) to this function as its argument, and the resulting
string is output on the standard output device.
Write a string to stdout.
Read a file and return its contents as a string. The file is read lazily, as with getContents.
Beware that this function (similarly to readFile) is locale-dependent. Unexpected system locale may cause your application to read corrupted data or throw runtime exceptions about "invalid argument (invalid byte sequence)" or "invalid argument (invalid character)". This is also slow, because GHC first converts an entire input to UTF-32, which is afterwards converted to UTF-8.
If your data is UTF-8, using decodeUtf8 . readFile is a much faster and safer alternative.
Write a string to a handle, followed by a newline.
Write a string to stdout, followed by a newline.