Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
The parser doesn't know about operators and parses everything as normal
function application. This module contains the functions that parses the
operators properly. For a stand-alone implementation of this see
src/prototyping/mixfix/old
.
It also contains the function that puts parenthesis back given the precedence of the context.
Documentation
parseApplication :: List2 Expr -> ScopeM Expr Source #
Parse a list of expressions (typically from a RawApp
) into an application.
parseModuleApplication :: Expr -> ScopeM (QName, [NamedArg Expr]) Source #
Parse an expression into a module application (an identifier plus a list of arguments).