| Safe Haskell | Safe |
|---|---|
| Language | Haskell2010 |
ReWire.HSE.Fixity
Synopsis
- fixLocalOps :: (MonadState AstError m, MonadFail m) => Module SrcSpanInfo -> m (Module SrcSpanInfo)
- deuniquifyLocalOps :: Module SrcSpanInfo -> Module SrcSpanInfo
- getFixities :: [Decl a] -> [Fixity]
Documentation
fixLocalOps :: (MonadState AstError m, MonadFail m) => Module SrcSpanInfo -> m (Module SrcSpanInfo) Source #
Renames local operators and fixes local and file-scope fixities. applyFixities appears to be intended to handle this automatically, but it seems to be buggy and not allow inner fixity declarations to shadow outer ones (on operators with the same name). Note: applyFixities annoyingly fixes the annotation type as SrcSpanInfo.
deuniquifyLocalOps :: Module SrcSpanInfo -> Module SrcSpanInfo Source #
getFixities :: [Decl a] -> [Fixity] Source #