opentheory-parser-1.160: Stream parsers

LicenseMIT
MaintainerJoe Leslie-Hurd <joe@gilith.com>
Stabilityprovisional
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

OpenTheory.Parser.Stream

Description

 

Documentation

data Stream a Source

Constructors

Error 
Eof 
Cons a (Stream a) 

Instances

Eq a => Eq (Stream a) Source 
Ord a => Ord (Stream a) Source 
Show a => Show (Stream a) Source 
Arbitrary a => Arbitrary (Stream a) Source 

append :: [a] -> Stream a -> Stream a Source

fromList :: [a] -> Stream a Source

mapStream :: (a -> b) -> Stream a -> Stream b Source

toList :: Stream a -> ([a], Bool) Source