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.
mkList :: forall (m :: Type -> Type) . [ResolverValue m] -> ResolverValue mmorpheus-graphql-app Data.Morpheus.App.Internal.Resolving No documentation available.
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
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
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]
unsafeFromList :: [a] -> NonEmptyVector anonempty-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]
fromList :: Num p => [(p, a)] -> Categorical p arandom-fu Data.Random.Distribution.Categorical Construct a Categorical distribution from a list of weighted categories.
fromWeightedList :: (Fractional p, Eq p) => [(p, a)] -> Categorical p arandom-fu Data.Random.Distribution.Categorical Construct a Categorical distribution from a list of weighted categories, where the weights do not necessarily sum to 1.
toList :: Num p => Categorical p a -> [(p, a)]random-fu Data.Random.Distribution.Categorical No documentation available.
data
RecordList (p :: Type -> Type) trelational-query Database.Relational Projected record list type for row list.
insertValueList :: (TableDerivable r, LiteralSQL r') => Pi r r' -> [r'] -> [Insert ()]relational-query Database.Relational Make typed Insert list from records list.