Hoogle Search

Within LTS Haskell 24.28 (ghc-9.10.3)

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

  1. mkList :: forall (m :: Type -> Type) . [ResolverValue m] -> ResolverValue m

    morpheus-graphql-app Data.Morpheus.App.Internal.Resolving

    No documentation available.

  2. fromList :: [a] -> Maybe (NonEmptyVector a)

    nonempty-vector Data.Vector.NonEmpty

    O(n) Convert from a list to a non-empty vector.

    >>> fromList [1..3]
    Just [1,2,3]
    
    >>> fromList []
    Nothing
    

  3. fromListN :: Int -> [a] -> Maybe (NonEmptyVector a)

    nonempty-vector Data.Vector.NonEmpty

    O(n) Convert the first n elements of a list to a non-empty vector. If the list is empty or <= 0 elements are chosen, Nothing is returned, otherwise Just containing the non-empty vector

    >>> fromListN 3 [1..5]
    Just [1,2,3]
    
    >>> fromListN 3 []
    Nothing
    
    >>> fromListN 0 [1..5]
    Nothing
    

  4. toList :: NonEmptyVector a -> [a]

    nonempty-vector Data.Vector.NonEmpty

    O(n) Convert from a non-empty vector to a list.

    >>> let nev :: NonEmptyVector Int = unsafeFromList [1..3] in toList nev
    [1,2,3]
    

  5. unsafeFromList :: [a] -> NonEmptyVector a

    nonempty-vector Data.Vector.NonEmpty

    O(n) Convert from a list to a non-empty vector. Warning: the onus is on the user to ensure that their vector is not empty, otherwise all bets are off!

    >>> unsafeFromList [1..3]
    [1,2,3]
    

  6. fromList :: Num p => [(p, a)] -> Categorical p a

    random-fu Data.Random.Distribution.Categorical

    Construct a Categorical distribution from a list of weighted categories.

  7. fromWeightedList :: (Fractional p, Eq p) => [(p, a)] -> Categorical p a

    random-fu Data.Random.Distribution.Categorical

    Construct a Categorical distribution from a list of weighted categories, where the weights do not necessarily sum to 1.

  8. toList :: Num p => Categorical p a -> [(p, a)]

    random-fu Data.Random.Distribution.Categorical

    No documentation available.

  9. data RecordList (p :: Type -> Type) t

    relational-query Database.Relational

    Projected record list type for row list.

  10. insertValueList :: (TableDerivable r, LiteralSQL r') => Pi r r' -> [r'] -> [Insert ()]

    relational-query Database.Relational

    Make typed Insert list from records list.

Page 149 of many | Previous | Next