Hoogle Search

Within LTS Haskell 24.37 (ghc-9.10.3)

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

  1. mapTup3 :: (a -> b) -> (a, a, a) -> (b, b, b)

    tools-yj Data.Tuple.ToolsYj

    No documentation available.

  2. mapTup3M :: Applicative m => (a -> m b) -> (a, a, a) -> m (b, b, b)

    tools-yj Data.Tuple.ToolsYj

    No documentation available.

  3. mapTup3M_ :: Applicative m => (a -> m b) -> (a, a, a) -> m ()

    tools-yj Data.Tuple.ToolsYj

    No documentation available.

  4. mapWithKey :: ([c] -> a -> b) -> TMap c a -> TMap c b

    trie-simple Data.Trie.Map

    Same semantics to following defintion, but have more efficient implementation.

    mapWithKey f = fromAscList .
    map (\(cs,a) -> (cs,  f cs a)) .
    toAscList
    

  5. mapPolyT :: MapT (Poly a b) s t => (a -> b) -> s -> t

    tuple-sop Data.Tuple.Ops

    Applies a polymorphic function to each element in an n-ary tuple. Requires all elements in the tuple to be of the same type.

    >>> mapPolyT (+1) (5,6,7,8)
    (6,7,8,9)
    
    >>> mapPolyT (+1) (5,6,7,False)
    No instance for (Num Bool) arising from the literal `5'
    

  6. mapT :: MapT f s t => f -> s -> t

    tuple-sop Data.Tuple.Ops

    Maps a monomorphic function over each element in an n-ary tuple that matches the type of the argument of the function

    >>> mapT not (True,'c',False)
    (False,'c',True)
    
    Sometimes it is necessary to specify the result type.
    >>> mapT (+1) (5,6,7,False) :: (Integer,Integer,Integer,Bool)
    (6,7,8,False)
    
    Using mapPolyT this is not necessary. However, to use mapPolyT the tuple may only contains elements of a single type.

  7. mapM :: (Monad m, Unboxable a, Unboxable b) => (a -> m b) -> Vector a -> m (Vector b)

    unboxing-vector Data.Vector.Unboxing

    No documentation available.

  8. mapM_ :: (Monad m, Unboxable a) => (a -> m b) -> Vector a -> m ()

    unboxing-vector Data.Vector.Unboxing

    No documentation available.

  9. mapMaybe :: (Unboxable a, Unboxable b) => (a -> Maybe b) -> Vector a -> Vector b

    unboxing-vector Data.Vector.Unboxing

    No documentation available.

  10. mapOf :: Typeable x => UnjsonDef x -> UnjsonDef (LazyKeyMap x)

    unjson Data.Unjson

    Gather all keys with respective values in a map. Example:

    data X = X { xMap :: LazyHashMap.HashMap Text.Text x }
    
    objectOf $ pure X
    <*> fieldBy "xmap" xMap
    "Map string to Y value"
    (mapOf unjsonY)
    
    Note that overloading allows for automatic conversion to more map types, for example:
    data X = X { xMap :: Map.Map String x }
    
    objectOf $ pure X
    <*> field "xmap" xMap
    "Map string to Y value"
    

Page 325 of many | Previous | Next