[GHC] #8624: -ddump-splices-file
GHC
ghc-devs at haskell.org
Tue Jan 13 16:09:51 UTC 2015
#8624: -ddump-splices-file
-------------------------------------+-------------------------------------
Reporter: GregWeber | Owner:
Type: feature request | Status: patch
Priority: normal | Milestone: 7.10.1
Component: Compiler | Version: 7.6.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: None/Unknown | Unknown/Multiple
Blocked By: | Test Case:
Related Tickets: | Blocking:
| Differential Revisions: Phab:D518
-------------------------------------+-------------------------------------
Comment (by Austin Seipp <austin@…>):
In [changeset:"07ace5c221adbb1675413a0fac300a9f7913c234/ghc"]:
{{{
#!CommitTicketReference repository="ghc"
revision="07ace5c221adbb1675413a0fac300a9f7913c234"
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
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8624#comment:25>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list