diff options
author | Alan Zimmerman <alan.zimm@gmail.com> | 2021-05-26 22:20:07 +0100 |
---|---|---|
committer | Alan Zimmerman <alan.zimm@gmail.com> | 2021-05-27 19:25:24 +0100 |
commit | 6de8ac892a8001d1a0f00c7b44a731f1f9f5c0b1 (patch) | |
tree | 01774790bd6cac7162bb4fc40d3b810e9cc1c367 /utils/check-exact/README | |
parent | ce1b8f4208530fe6449506ba22e3a05048f81564 (diff) | |
download | haskell-6de8ac892a8001d1a0f00c7b44a731f1f9f5c0b1.tar.gz |
[EPA] exact print linear arrows.
Closes #19903
Note: the normal ppr does not reproduce unicode linear arrows, so that
part of the normal printing test is ommented out in the Makefile for
this test. See #18846
Diffstat (limited to 'utils/check-exact/README')
-rw-r--r-- | utils/check-exact/README | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/utils/check-exact/README b/utils/check-exact/README index b27f0fbd55..07a7f26ed9 100644 --- a/utils/check-exact/README +++ b/utils/check-exact/README @@ -22,3 +22,28 @@ The utility generates the following files for ToBeTested.hs - ToBeTested.ppr.hs : the ppr result - ToBeTested.hs.ast : the AST of the original source - ToBeTested.hs.ast.new : the AST of the re-parsed ppr source + +For local development/testing +----------------------------- + +From this directory, start a ghci session by + +../../_build/stage1/bin/ghc --interactive + +Update Main.hs. the _tt function to firstly have the full local path +of the _build/stage1/lib directory, and secondly to be cofigured to +run the test of interest, by adding a new line to the many already +there or commenting in the one (only) to be tested. + +ghci> :l Main.hs +ghci> _tt +*** Exception: ExitSuccess + +Note: GHC may complain about missing modules, etc, this is not a +problem, the test passes if it gives ExitSuccess at the end. + +Logging can be turned on by flipping the comments in Utils.hs + +debugEnabledFlag = True +-- debugEnabledFlag = False + |