Hoogle Search

Within LTS Haskell 24.34 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. readFile :: Interactive m => FilePath -> m String

    cabal-install Distribution.Client.Init.Types

    No documentation available.

  2. mmapFromForeignRegion :: FromForeignRegion a => FilePath -> IO a

    hw-prim HaskellWorks.Data.FromForeignRegion

    No documentation available.

  3. showIO :: ShowIO a => a -> IO String

    tools-yj Text.Show.ToolsYj

    No documentation available.

  4. readUTF8File :: UTF8 a => FilePath -> IO a

    utf8-light Codec.Binary.UTF8.Light

    No documentation available.

  5. readFile :: StringRWIO s => FilePath -> IO s

    string-class Data.String.Class

    Read a file and returns the contents of the file as a string Depending on the instance, this function might expect the file to be non-binary. The default definition uses openFile to open the file.

  6. throwError :: forall e (sig :: (Type -> Type) -> Type -> Type) m a . Has (Throw e) sig m => e -> m a

    fused-effects Control.Effect.Throw

    Throw an error, escaping the current computation up to the nearest catchError (if any).

    runThrow (throwError e >>= k) = runThrow (throwError e)
    

  7. throwEnvelopeErr' :: MonadError (Err e) m => e -> m a

    envelope Web.Envelope

    Like throwEnvelopeErr but without providing a message.

    >>> import Control.Monad.Except (runExcept)
    
    >>> throwEnvelopeErr "BAD_ERROR" "a very bad error occurred!" :: Either (Err String) Int
    Left (Err {errErr = "BAD_ERROR", errExtra = Just "a very bad error occurred!"})
    

  8. replicateT :: Default (Replicator r f) b b => r -> f b

    product-profunctors Data.Profunctor.Product.Examples

    A higher-order generalisation of replicate. For example

    foo :: IO (String, String, String)
    foo = replicateT getLine
    
    > foo
    Hello
    world
    !
    ("Hello","world","!")
    

  9. traverseT :: Default (Traverse f) a b => a -> f b

    product-profunctors Data.Profunctor.Product.Examples

    Use sequenceT instead. It has a better name.

  10. sequenceT :: Default (Sequence f) a b => a -> f b

    product-profunctors Data.Profunctor.Product.Examples

    A higher-order generalisation of sequenceA. For example

    > sequenceT (print 3110, putStrLn World) :: IO ((), ())
    3110
    World
    ((),())
    

Page 9 of many | Previous | Next