diff options
author | Greg Weber <greg@gregweber.info> | 2015-01-12 05:16:37 -0600 |
---|---|---|
committer | Austin Seipp <austin@well-typed.com> | 2015-01-13 10:10:38 -0600 |
commit | 07ace5c221adbb1675413a0fac300a9f7913c234 (patch) | |
tree | d00e7a658680ce0e2488f40ccbb4297708af1820 /testsuite/tests/th/T5984.stderr | |
parent | 0fa4240249058f327cfd283f9da2deb8dff664f1 (diff) | |
download | haskell-07ace5c221adbb1675413a0fac300a9f7913c234.tar.gz |
add -th-file which generates a th.hs file
Summary:
see Trac #8624
similar functionality is now available
with -ddump-to-file -ddump-splices
However, users are already accustomed to -ddump-splices
having a particular format, and this format is not completely valid code
The goal of -th-file is to dump valid Haskell code
Additionally, the convention of -ddump-to-file is to name the file after
the flag, so the file is .dump-splices
Given that the goal of the new flag is to generate valid Haskell,
The extension should be .hs
Additionally, -ddump-to-file effects all other dump flags
Test Plan:
look at the output of using the -th-file flag
and compare it to the output of using -ddump-to-file and -ddump-splices
I want to add test cases, but just need some pointers on getting started there
Reviewers: thomie, goldfire, simonpj, austin
Reviewed By: simonpj, austin
Subscribers: thomie, carter
Differential Revision: https://phabricator.haskell.org/D518
GHC Trac Issues: #8624
Diffstat (limited to 'testsuite/tests/th/T5984.stderr')
-rw-r--r-- | testsuite/tests/th/T5984.stderr | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/testsuite/tests/th/T5984.stderr b/testsuite/tests/th/T5984.stderr index 50c7cbfdd0..2e612c7e9e 100644 --- a/testsuite/tests/th/T5984.stderr +++ b/testsuite/tests/th/T5984.stderr @@ -1,10 +1,8 @@ -T5984.hs:1:1: Splicing declarations +T5984.hs:7:1-3: Splicing declarations nt ======> - T5984.hs:7:1-3 newtype Foo = Foo Int -T5984.hs:1:1: Splicing declarations +T5984.hs:8:1-3: Splicing declarations dt ======> - T5984.hs:8:1-3 data Bar = Bar Int |