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.
putUInt32List :: WireTag -> Seq Word32 -> Putprotobuf-simple Data.ProtoBufInt Encode a repeated uint32 field.
putUInt64List :: WireTag -> Seq Word64 -> Putprotobuf-simple Data.ProtoBufInt Encode a repeated uint64 field.
-
Random access list. This module is designed to imported qualifed.
-
ral Data.RAList Random access list.
-
ral Data.RAList >>> fromList ['a' .. 'f'] fromList "abcdef"
>>> explicitShow $ fromList ['a' .. 'f'] "NonEmpty (NE (Cons0 (Cons1 (Nd (Lf 'a') (Lf 'b')) (Last (Nd (Nd (Lf 'c') (Lf 'd')) (Nd (Lf 'e') (Lf 'f')))))))"
-
ral Data.RAList No documentation available.
-
ral Data.RAList.NonEmpty Non-empty random access list.
data
NERAList' (f :: Type -> Type) aral Data.RAList.NonEmpty Non-empty random access list, underlying representation. The structure doesn't need to be hidden, as polymorphic recursion of Nodes starting from Leaf keeps the NERAList values well-formed.
fromList :: forall (b :: Bin) a . SBinI b => [a] -> Maybe (RAVec b a)ral Data.RAVec Convert a list [a] to RAVec b a. Returns Nothing if lengths don't match.
>>> fromList "foo" :: Maybe (RAVec B.Bin3 Char) Just (NonEmpty (NE (Cons1 (Leaf 'f') (Last (Node (Leaf 'o') (Leaf 'o'))))))
>>> fromList "quux" :: Maybe (RAVec B.Bin3 Char) Nothing
>>> fromList "xy" :: Maybe (RAVec B.Bin3 Char) Nothing
reifyList :: [a] -> (forall (b :: Bin) . SBinI b => RAVec b a -> r) -> rral Data.RAVec >>> reifyList "foo" print NonEmpty (NE (Cons1 (Leaf 'f') (Last (Node (Leaf 'o') (Leaf 'o')))))
>>> reifyList "xyzzy" toList "xyzzy"