Hoogle Search
Within LTS Haskell 24.27 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
fromList :: forall a (n :: Nat) . (Unbox a, KnownNat n) => [a] -> Maybe (Vector n a)vector-sized Data.Vector.Unboxed.Sized O(n) Convert a list to a vector.
fromListN :: forall (n :: Nat) a . (Unbox a, KnownNat n) => [a] -> Maybe (Vector n a)vector-sized Data.Vector.Unboxed.Sized O(n) Convert the first n elements of a list to a vector. The length of the resulting vector is inferred from the type.
fromListN' :: forall (n :: Nat) a p . (Unbox a, KnownNat n) => p n -> [a] -> Maybe (Vector n a)vector-sized Data.Vector.Unboxed.Sized O(n) Convert the first n elements of a list to a vector. The length of the resulting vector is given explicitly as a Proxy argument.
toList :: forall a (n :: Nat) . Unbox a => Vector n a -> [a]vector-sized Data.Vector.Unboxed.Sized O(n) Convert a vector to a list.
withSizedList :: Unbox a => [a] -> (forall (n :: Nat) . KnownNat n => Vector n a -> r) -> rvector-sized Data.Vector.Unboxed.Sized O(n) Takes a list and returns a continuation providing a vector with a size parameter corresponding to the length of the list. Essentially converts a list into a vector with the proper size parameter, determined at runtime. See withSized
encodeList :: [ASN1] -> (Int, [ASN1Event])asn1-encoding Data.ASN1.Prim No documentation available.
appendList :: NonEmpty a -> [a] -> NonEmpty abase-compat-batteries Data.List.NonEmpty.Compat Attach a list at the end of a NonEmpty.
>>> appendList (1 :| [2,3]) [] 1 :| [2,3]
>>> appendList (1 :| [2,3]) [4,5] 1 :| [2,3,4,5]
fromList :: HasCallStack => [a] -> NonEmpty abase-compat-batteries Data.List.NonEmpty.Compat Converts a normal list to a NonEmpty stream. Raises an error if given an empty list.
prependList :: [a] -> NonEmpty a -> NonEmpty abase-compat-batteries Data.List.NonEmpty.Compat Attach a list at the beginning of a NonEmpty.
>>> prependList [] (1 :| [2,3]) 1 :| [2,3]
>>> prependList [negate 1, 0] (1 :| [2, 3]) -1 :| [0,1,2,3]
-
base-compat-batteries Data.List.NonEmpty.Compat Convert a stream to a normal list efficiently.