summaryrefslogtreecommitdiff
path: root/compiler/GHC/Parser
diff options
context:
space:
mode:
authorTakenobu Tani <takenobu.hs@gmail.com>2020-05-29 18:48:51 +0900
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-06-01 06:39:05 -0400
commit8f2e5732b0eec2d99b821a7f622aee8b2c00739a (patch)
tree6f6f69d9441987b95d1a1284cb879cb29a4f221e /compiler/GHC/Parser
parent11390e3ab038a18c2a7bf6b2423657614a439afb (diff)
downloadhaskell-8f2e5732b0eec2d99b821a7f622aee8b2c00739a.tar.gz
Modify file paths to module paths for new module hierarchy
This updates comments only. This patch replaces module references according to new module hierarchy [1][2]. For files under the `compiler/` directory, I replace them as module paths instead of file paths. For instance, `GHC.Unit.State` instead of `compiler/GHC/Unit/State.hs` [3]. For current and future haddock's markup, this patch encloses the module name with "" [4]. [1]: https://gitlab.haskell.org/ghc/ghc/-/wikis/Make-GHC-codebase-more-modular [2]: https://gitlab.haskell.org/ghc/ghc/issues/13009 [3]: https://gitlab.haskell.org/ghc/ghc/-/merge_requests/3375#note_276613 [4]: https://haskell-haddock.readthedocs.io/en/latest/markup.html#linking-to-modules
Diffstat (limited to 'compiler/GHC/Parser')
-rw-r--r--compiler/GHC/Parser/Lexer.x4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/GHC/Parser/Lexer.x b/compiler/GHC/Parser/Lexer.x
index 72f88e8018..bc4349e391 100644
--- a/compiler/GHC/Parser/Lexer.x
+++ b/compiler/GHC/Parser/Lexer.x
@@ -119,7 +119,7 @@ import GHC.Parser.Annotation
-- -----------------------------------------------------------------------------
-- Alex "Character set macros"
--- NB: The logic behind these definitions is also reflected in GHC/Utils/Lexeme.hs
+-- NB: The logic behind these definitions is also reflected in "GHC.Utils.Lexeme"
-- Any changes here should likely be reflected there.
$unispace = \x05 -- Trick Alex into handling Unicode. See [Unicode in Alex].
$nl = [\n\r\f]
@@ -2261,7 +2261,7 @@ adjustChar c = fromIntegral $ ord adj_c
-- with the actual character value hidden in the state.
| otherwise =
-- NB: The logic behind these definitions is also reflected
- -- in GHC/Utils/Lexeme.hs
+ -- in "GHC.Utils.Lexeme"
-- Any changes here should likely be reflected there.
case generalCategory c of