Copyright | (c) Edward Kmett and Dan Doel 2013 |
---|---|
License | BSD3 |
Maintainer | Edward Kmett <ekmett@gmail.com> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
This module provides the parser for terms
Documentation
validate :: (Functor m, Monad m, Ord v) => Binder v a -> (v -> m Void) -> m () Source
Check a Binder
for linearity.
Each variable name must be used at most once in the pattern.
pattern :: (Monad m, TokenParsing m) => m PP Source
Parse a single pattern (e.g. a case statement alt pattern)