Agda-2.4.2: A dependently typed functional programming language and proof assistant

Safe HaskellNone

Agda.Syntax.Fixity

Description

Definitions for fixity and precedence levels.

Synopsis

Documentation

data Fixity' Source

The notation is handled as the fixity in the renamer. Hence they are grouped together in this type.

Constructors

Fixity' 

Instances

data ThingWithFixity x Source

Constructors

ThingWithFixity x Fixity' 

Instances

type NewNotation = (QName, Fixity, Notation)Source

All the notation information related to a name.

oldToNewNotation :: (QName, Fixity') -> NewNotationSource

If an operator has no specific notation, recover it from its name.

data Fixity Source

Fixity of operators.

Constructors

LeftAssoc Range Integer 
RightAssoc Range Integer 
NonAssoc Range Integer 

defaultFixity :: FixitySource

The default fixity. Currently defined to be NonAssoc 20.

hiddenArgumentCtx :: Hiding -> PrecedenceSource

The precedence corresponding to a possibly hidden argument.

opBrackets :: Fixity -> Precedence -> BoolSource

Do we need to bracket an operator application of the given fixity in a context with the given precedence.

appBrackets :: Precedence -> BoolSource

Does a function application need brackets?

withAppBrackets :: Precedence -> BoolSource

Does a with application need brackets?

piBrackets :: Precedence -> BoolSource

Does a function space need brackets?