Hoogle Search
Within LTS Haskell 24.31 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
readFile :: FilePath -> IO Texttext Data.Text.IO The readFile function reads a file and returns the contents of the file as a string. The entire file is read strictly, 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.
readFile :: FilePath -> IO Texttext Data.Text.IO.Utf8 The readFile function reads a file and returns the contents of the file as a string. The entire file is read strictly, as with getContents.
readChunk :: Handle__ -> CharBuffer -> IO Texttext Data.Text.Internal.IO Read a single chunk of strict text from a buffer. Used by both the strict and lazy implementations of hGetContents.
readFile :: FilePath -> IO Texttext Data.Text.Lazy.IO 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.
-
transformers Control.Monad.Trans.Accum Convert a read-only computation into an accumulation computation.
reader :: forall (m :: Type -> Type) r a w s . Monad m => (r -> a) -> RWST r w s m atransformers Control.Monad.Trans.RWS.CPS Constructor for computations in the reader monad (equivalent to asks).
reader :: forall w (m :: Type -> Type) r a s . (Monoid w, Monad m) => (r -> a) -> RWST r w s m atransformers Control.Monad.Trans.RWS.Lazy Constructor for computations in the reader monad (equivalent to asks).
reader :: forall w (m :: Type -> Type) r a s . (Monoid w, Monad m) => (r -> a) -> RWST r w s m atransformers Control.Monad.Trans.RWS.Strict Constructor for computations in the reader monad (equivalent to asks).
reader :: forall (m :: Type -> Type) r a . Monad m => (r -> a) -> ReaderT r m atransformers Control.Monad.Trans.Reader Constructor for computations in the reader monad (equivalent to asks).
reader :: MonadReader r m => (r -> a) -> m amtl Control.Monad.Reader Retrieves a function of the current environment.