Hoogle Search
Within LTS Haskell 24.6 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
listEq :: forall (m :: Type -> Type) a . (Monad m, Eq a) => [a] -> Parser a m [a]streamly-core Streamly.Data.Parser Match the input sequence with the supplied list and return it if successful.
>>> listEq = Parser.listEqBy (==)
listEqBy :: forall (m :: Type -> Type) a . Monad m => (a -> a -> Bool) -> [a] -> Parser a m [a]streamly-core Streamly.Data.Parser Match the given sequence of elements using the given comparison function. Returns the original sequence if successful. Definition:
>>> listEqBy cmp xs = Parser.streamEqBy cmp (Stream.fromList xs) *> Parser.fromPure xs
Examples:>>> Stream.parse (Parser.listEqBy (==) "string") $ Stream.fromList "string" Right "string"
>>> Stream.parse (Parser.listEqBy (==) "mismatch") $ Stream.fromList "match" Left (ParseError "streamEqBy: mismtach occurred")
listEq :: forall (m :: Type -> Type) a . (Monad m, Eq a) => [a] -> Parser a m [a]streamly-core Streamly.Internal.Data.Parser Match the input sequence with the supplied list and return it if successful.
>>> listEq = Parser.listEqBy (==)
listEqBy :: forall (m :: Type -> Type) a . Monad m => (a -> a -> Bool) -> [a] -> Parser a m [a]streamly-core Streamly.Internal.Data.Parser Match the given sequence of elements using the given comparison function. Returns the original sequence if successful. Definition:
>>> listEqBy cmp xs = Parser.streamEqBy cmp (Stream.fromList xs) *> Parser.fromPure xs
Examples:>>> Stream.parse (Parser.listEqBy (==) "string") $ Stream.fromList "string" Right "string"
>>> Stream.parse (Parser.listEqBy (==) "mismatch") $ Stream.fromList "match" Left (ParseError "streamEqBy: mismtach occurred")
-
witness Data.Type.Witness.Specific.List.Product No documentation available.
listProductGetElement :: forall (list :: [Type]) t . ListElementType list t -> ListProduct list -> twitness Data.Type.Witness.Specific.List.Product No documentation available.
-
witness Data.Type.Witness.Specific.List.Product No documentation available.
-
witness Data.Type.Witness.Specific.List.Product No documentation available.
-
witness Data.Type.Witness.Specific.List.Product No documentation available.
-
witness Data.Type.Witness.Specific.List.Product No documentation available.