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.

  1. readFile :: FilePath -> IO Text

    text 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.

  2. readFile :: FilePath -> IO Text

    text 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.

  3. readChunk :: Handle__ -> CharBuffer -> IO Text

    text Data.Text.Internal.IO

    Read a single chunk of strict text from a buffer. Used by both the strict and lazy implementations of hGetContents.

  4. readFile :: FilePath -> IO Text

    text 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.

  5. readerToAccumT :: forall (m :: Type -> Type) w a . (Functor m, Monoid w) => ReaderT w m a -> AccumT w m a

    transformers Control.Monad.Trans.Accum

    Convert a read-only computation into an accumulation computation.

  6. reader :: forall (m :: Type -> Type) r a w s . Monad m => (r -> a) -> RWST r w s m a

    transformers Control.Monad.Trans.RWS.CPS

    Constructor for computations in the reader monad (equivalent to asks).

  7. reader :: forall w (m :: Type -> Type) r a s . (Monoid w, Monad m) => (r -> a) -> RWST r w s m a

    transformers Control.Monad.Trans.RWS.Lazy

    Constructor for computations in the reader monad (equivalent to asks).

  8. reader :: forall w (m :: Type -> Type) r a s . (Monoid w, Monad m) => (r -> a) -> RWST r w s m a

    transformers Control.Monad.Trans.RWS.Strict

    Constructor for computations in the reader monad (equivalent to asks).

  9. reader :: forall (m :: Type -> Type) r a . Monad m => (r -> a) -> ReaderT r m a

    transformers Control.Monad.Trans.Reader

    Constructor for computations in the reader monad (equivalent to asks).

  10. reader :: MonadReader r m => (r -> a) -> m a

    mtl Control.Monad.Reader

    Retrieves a function of the current environment.

Page 70 of many | Previous | Next