Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
ada91343
Commit
ada91343
authored
Jun 01, 1998
by
sof
Browse files
[project @ 1998-06-01 12:28:39 by sof]
Turn off pruning of newtypes, the code generator may need to see constructor
parent
065e27a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/rename/RnIfaces.lhs
View file @
ada91343
...
...
@@ -618,6 +618,10 @@ getNonWiredDataDecl needed_name
ty_decl@(TyData new_or_data context tycon tyvars condecls derivings pragmas src_loc)
| needed_name == tycon_name
&& opt_PruneTyDecls
-- don't prune newtypes, as the code generator may
-- want to peer inside a newtype type constructor
-- (ClosureInfo.fun_result_ty is the culprit.)
&& not (new_or_data == NewType)
&& not (nameUnique needed_name `elem` cCallishTyKeys)
-- Hack! Don't prune these tycons whose constructors
-- the desugarer must be able to see when desugaring
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment