diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2021-01-10 21:18:30 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2021-01-22 22:02:59 +0000 |
commit | 511fa2df9142b850606f2d0caac673f8799132e3 (patch) | |
tree | 124e21ffcb8708e18b39b281d9ac32ebe16dc947 /compiler/Language/Haskell/Syntax.hs | |
parent | 80a26e7902d3a7fbba4caaa3abdef8a6b5abf597 (diff) | |
download | haskell-wip/fix-18936.tar.gz |
Track the dependencies of `GHC.Hs.Expr.Types`wip/fix-18936
Thery is still, in my view, far too numerous, but I believe this won't
be too hard to improve upon. At the very lease, we can always add more
extension points!
Diffstat (limited to 'compiler/Language/Haskell/Syntax.hs')
-rw-r--r-- | compiler/Language/Haskell/Syntax.hs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/compiler/Language/Haskell/Syntax.hs b/compiler/Language/Haskell/Syntax.hs index 9da54cd8ed..510d22afe9 100644 --- a/compiler/Language/Haskell/Syntax.hs +++ b/compiler/Language/Haskell/Syntax.hs @@ -44,11 +44,15 @@ Note [Language.Haskell.Syntax.* Hierarchy] Why are these modules not 'GHC.Hs.*', or some other 'GHC.*'? The answer is that they are to be separated from GHC and put into another package, in accordance with the final goals of Trees that Grow. (See Note [Trees -that grow] in 'Language.Haskell.Syntax.Extension'.) - -We cannot separate them yet, but by giving them names like so, we hope -to remind others that the goal is to factor them out, and therefore -dependencies on the rest of GHC should never be added, only removed. +that grow] in 'Language.Haskell.Syntax.Extension'.) In short, the +'Language.Haskell.Syntax.*' tree should be entirely GHC-independent. +GHC-specific stuff related to source-language syntax should be in +'GHC.Hs.*'. + +We cannot move them to the separate package yet, but by giving them +names like so, we hope to remind others that the goal is to factor them +out, and therefore dependencies on the rest of GHC should never be +added, only removed. For more details, see https://gitlab.haskell.org/ghc/ghc/-/wikis/implementing-trees-that-grow |