Hoogle Search

Within LTS Haskell 24.4 (ghc-9.10.2)

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

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

    hw-prim HaskellWorks.Data.FromForeignRegion

    No documentation available.

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

    tools-yj Text.Show.ToolsYj

    No documentation available.

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

    utf8-light Codec.Binary.UTF8.Light

    No documentation available.

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

  5. 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)
    

  6. 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!"})
    

  7. 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","!")
    

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

    product-profunctors Data.Profunctor.Product.Examples

    Use sequenceT instead. It has a better name.

  9. 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
    ((),())
    

  10. getValue :: (MonadState (Dependencies v n) m, MonadError (DepError v n) m, Eq v, Hashable v) => v -> m n

    mfsolve Math.MFSolve

    Return the value of the variable or throw an error.

Page 9 of many | Previous | Next