wip: Implement the constraint-based arrow notation proposal
* wip: Add ArrowEnv, ArrowStackTup, and ArrowEnvTup * wip: Use arrow wired-in families in typechecker * Rewrite arrow desugaring * Fix some arrow typing issues * Fix most of the remaining arrow tests * Reorganize arrow-related modules * Tidy up a few comments * Accept new type error output for now I want to improve the type error involving ArrowStackTup to hide the family from the error message, but that can come later. * Accept some more modified error output in tests These mostly arise from making Either a wired-in type. * Update two test cases for new control operator typing * Expand the wired-in arrow type families in type errors I am not sure that this is really the right place to do this expansion. It seems like it should probably go in the tidying/printing code, but it would be a significant expansion of the responsibility of tidying, so I don’t know if that makes sense yet. I will probably change this later. * Rename a few things and add some new Notes * Add another Note; rename some things; various minor refactorings
parent
a9e035a4
No related branches found
No related tags found
Pipeline #44915 failed
Stage: tool-lint
Stage: quick-build
Stage: full-build
Stage: packaging
Stage: testing
Showing
- .gitlab/linters/check-cpp.py 2 additions, 2 deletions.gitlab/linters/check-cpp.py
- compiler/GHC/Builtin/Names.hs 12 additions, 12 deletionscompiler/GHC/Builtin/Names.hs
- compiler/GHC/Builtin/Types.hs 85 additions, 1 deletioncompiler/GHC/Builtin/Types.hs
- compiler/GHC/Builtin/Types/Arrows.hs 237 additions, 0 deletionscompiler/GHC/Builtin/Types/Arrows.hs
- compiler/GHC/Builtin/Types/Literals.hs 3 additions, 3 deletionscompiler/GHC/Builtin/Types/Literals.hs
- compiler/GHC/Builtin/Utils.hs 2 additions, 0 deletionscompiler/GHC/Builtin/Utils.hs
- compiler/GHC/Core/Make.hs 19 additions, 0 deletionscompiler/GHC/Core/Make.hs
- compiler/GHC/Core/TyCon.hs 2 additions, 0 deletionscompiler/GHC/Core/TyCon.hs
- compiler/GHC/Hs/Expr.hs 5 additions, 7 deletionscompiler/GHC/Hs/Expr.hs
- compiler/GHC/HsToCore/Arrows.hs 781 additions, 1092 deletionscompiler/GHC/HsToCore/Arrows.hs
- compiler/GHC/HsToCore/Arrows/Expr.hs 347 additions, 0 deletionscompiler/GHC/HsToCore/Arrows/Expr.hs
- compiler/GHC/HsToCore/Expr.hs 1 addition, 1 deletioncompiler/GHC/HsToCore/Expr.hs
- compiler/GHC/HsToCore/GuardedRHSs.hs 31 additions, 29 deletionscompiler/GHC/HsToCore/GuardedRHSs.hs
- compiler/GHC/HsToCore/Match.hs 20 additions, 8 deletionscompiler/GHC/HsToCore/Match.hs
- compiler/GHC/HsToCore/PmCheck.hs 1302 additions, 0 deletionscompiler/GHC/HsToCore/PmCheck.hs
- compiler/GHC/HsToCore/Pmc.hs 3 additions, 2 deletionscompiler/GHC/HsToCore/Pmc.hs
- compiler/GHC/HsToCore/Pmc/Desugar.hs 4 additions, 4 deletionscompiler/GHC/HsToCore/Pmc/Desugar.hs
- compiler/GHC/IfaceToCore.hs 6 additions, 1 deletioncompiler/GHC/IfaceToCore.hs
- compiler/GHC/Tc/Errors.hs 36 additions, 1 deletioncompiler/GHC/Tc/Errors.hs
- compiler/GHC/Tc/Gen/Arrow.hs 370 additions, 111 deletionscompiler/GHC/Tc/Gen/Arrow.hs
Loading
Please register or sign in to comment