Mikan
Safe HaskellNone
LanguageHaskell2010

Mikan.Syntax.Concrete.Fixity

Description

Collecting fixity declarations (and polarity pragmas) for concrete declarations.

Synopsis

Documentation

data DoWarn Source #

Constructors

NoWarn 
DoWarn 

Instances

Instances details
Show DoWarn Source # 
Instance details

Defined in Mikan.Syntax.Concrete.Fixity

Eq DoWarn Source # 
Instance details

Defined in Mikan.Syntax.Concrete.Fixity

Methods

(==) :: DoWarn -> DoWarn -> Bool #

(/=) :: DoWarn -> DoWarn -> Bool #

fixitiesAndPolarities :: MonadFixityError m => DoWarn -> [Declaration] -> m (Fixities, Polarities) Source #

Get the fixities and polarity pragmas from the current block. Doesn't go inside modules and where blocks. The reason for this is that these declarations have to appear at the same level (or possibly outside an abstract or mutual block) as their target declaration.