Hoogle Search

Within LTS Haskell 24.9 (ghc-9.10.2)

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

  1. firstM :: Functor m => (a -> m a') -> (a, b) -> m (a', b)

    extra Data.Tuple.Extra

    Update the first component of a pair.

    firstM (\x -> [x-1, x+1]) (1,"test") == [(0,"test"),(2,"test")]
    

  2. first3 :: (a -> a') -> (a, b, c) -> (a', b, c)

    extra Extra

    Update the first component of a triple.

    first3 succ (1,1,1) == (2,1,1)
    

  3. firstJust :: (a -> Maybe b) -> [a] -> Maybe b

    extra Extra

    Find the first element of a list for which the operation returns Just, along with the result of the operation. Like find but useful where the function also computes some expensive information that can be reused. Particular useful when the function is monadic, see firstJustM.

    firstJust id [Nothing,Just 3]  == Just 3
    firstJust id [Nothing,Nothing] == Nothing
    

  4. firstJustM :: Monad m => (a -> m (Maybe b)) -> [a] -> m (Maybe b)

    extra Extra

    Like findM, but also allows you to compute some additional information in the predicate.

  5. firstM :: Functor m => (a -> m a') -> (a, b) -> m (a', b)

    extra Extra

    Update the first component of a pair.

    firstM (\x -> [x-1, x+1]) (1,"test") == [(0,"test"),(2,"test")]
    

  6. firstAIdKey :: Unique

    ghc GHC.Builtin.Names

    No documentation available.

  7. firstAName :: Name

    ghc GHC.Builtin.Names

    No documentation available.

  8. firstNode :: forall n (x :: Extensibility) . Block n C x -> n C O

    ghc GHC.Cmm.Dataflow.Block

    No documentation available.

  9. firstxmm :: RegNo

    ghc GHC.CmmToAsm.X86.Regs

    No documentation available.

  10. fIRST_TAG :: ConTag

    ghc GHC.Core.DataCon

    Tags are allocated from here for real constructors or for superclass selectors

Page 17 of many | Previous | Next