Namespacing for fixity signatures (#14032)
Namespace specifiers were added to syntax of fixity signatures: - sigdecl ::= infix prec ops | ... + sigdecl ::= infix prec namespace_spec ops | ... To preserve namespace during renaming MiniFixityEnv type now has separate FastStringEnv fields for names that should be on the term level and for name that should be on the type level. makeMiniFixityEnv function was changed to fill MiniFixityEnv in the right way: - signatures without namespace specifiers fill both fields - signatures with 'data' specifier fill data field only - signatures with 'type' specifier fill type field only Was added helper function lookupMiniFixityEnv that takes care about looking for a name in an appropriate namespace. Updates haddock submodule. Metric Decrease: MultiLayerModulesTH_OneShot
Showing
- compiler/GHC/Builtin/Names/TH.hs 35 additions, 14 deletionscompiler/GHC/Builtin/Names/TH.hs
- compiler/GHC/Hs/Binds.hs 45 additions, 1 deletioncompiler/GHC/Hs/Binds.hs
- compiler/GHC/Hs/Decls.hs 2 additions, 24 deletionscompiler/GHC/Hs/Decls.hs
- compiler/GHC/HsToCore/Quote.hs 12 additions, 5 deletionscompiler/GHC/HsToCore/Quote.hs
- compiler/GHC/Parser.y 3 additions, 3 deletionscompiler/GHC/Parser.y
- compiler/GHC/Rename/Bind.hs 37 additions, 15 deletionscompiler/GHC/Rename/Bind.hs
- compiler/GHC/Rename/Fixity.hs 45 additions, 14 deletionscompiler/GHC/Rename/Fixity.hs
- compiler/GHC/Rename/Names.hs 1 addition, 1 deletioncompiler/GHC/Rename/Names.hs
- compiler/GHC/Tc/Deriv.hs 1 addition, 1 deletioncompiler/GHC/Tc/Deriv.hs
- compiler/GHC/Tc/Errors/Ppr.hs 10 additions, 0 deletionscompiler/GHC/Tc/Errors/Ppr.hs
- compiler/GHC/Tc/Errors/Types.hs 23 additions, 0 deletionscompiler/GHC/Tc/Errors/Types.hs
- compiler/GHC/ThToHs.hs 7 additions, 2 deletionscompiler/GHC/ThToHs.hs
- compiler/GHC/Types/Error/Codes.hs 1 addition, 0 deletionscompiler/GHC/Types/Error/Codes.hs
- docs/users_guide/9.10.1-notes.rst 10 additions, 2 deletionsdocs/users_guide/9.10.1-notes.rst
- docs/users_guide/exts/explicit_namespaces.rst 33 additions, 1 deletiondocs/users_guide/exts/explicit_namespaces.rst
- libraries/ghci/GHCi/TH/Binary.hs 1 addition, 0 deletionslibraries/ghci/GHCi/TH/Binary.hs
- libraries/template-haskell/Language/Haskell/TH.hs 2 additions, 1 deletionlibraries/template-haskell/Language/Haskell/TH.hs
- libraries/template-haskell/Language/Haskell/TH/Lib/Internal.hs 13 additions, 4 deletions...ries/template-haskell/Language/Haskell/TH/Lib/Internal.hs
- libraries/template-haskell/Language/Haskell/TH/Ppr.hs 10 additions, 4 deletionslibraries/template-haskell/Language/Haskell/TH/Ppr.hs
- libraries/template-haskell/Language/Haskell/TH/Syntax.hs 14 additions, 1 deletionlibraries/template-haskell/Language/Haskell/TH/Syntax.hs
Loading
Please register or sign in to comment