Print a string with a newline to standard output
Modulefoundation-0.0.30Haskell2010
Foundation.IO
IO Routine
- 1 type
- 10 values
- Packagefoundation-0.0.30
- Exports11
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceIO.hs
Terminal
4 declarationsPrint a string to standard output
File
7 declarationsSee GHC.Internal.System.IO.openFile
Instances6Enum, Eq, Ord, Read, Show, Ix
Enum IOModeDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.IOModeEq IOModeDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.IOModeOrd IOModeDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.IOModeRead IOModeDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.IOModeShow IOModeDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.IOModeIx IOModeDefined in ghc-internal-9.1003.0 · GHC.Internal.IO.IOMode
list the file name in the given FilePath directory
TODO: error management and not implemented yet getDirectory :: FilePath -> IO [FileName] getDirectory = undefined
Open a new handle on the file
Close a handle
withFile filepath mode act opens a file using the mode
and run act. the by-product handle will be closed when act finish,
either normally or through an exception.
The value returned is the result of act@
Read a binary file and return the whole content in one contiguous buffer.