Safe Haskell | None |
---|---|
Language | Haskell2010 |
Lists of length at least 2.
Import as:
import BNFC.Utils.List2 (List2(List2))
import qualified BNFC.Utils.List2 as List2
Synopsis
- data List2 a = List2 a a [a]
- type List1 = NonEmpty
- cons :: a -> List2 a -> List2 a
- snoc :: List2 a -> a -> List2 a
- head :: List2 a -> a
- tail :: List2 a -> [a]
- tail1 :: List2 a -> List1 a
- toList1 :: List2 a -> List1 a
- fromList :: [a] -> List2 a
- fromList1 :: List1 a -> List2 a
- break :: (a -> Bool) -> List2 a -> ([a], [a])
- toList :: IsList l => l -> [Item l]
Documentation
Lists of length ≥2.
List2 a a [a] |