[GHC] #15332: lintIdUnfolding could be simpler
GHC
ghc-devs at haskell.org
Mon Jul 2 13:40:20 UTC 2018
#15332: lintIdUnfolding could be simpler
-------------------------------------+-------------------------------------
Reporter: mpickering | Owner: (none)
Type: task | Status: new
Priority: normal | Milestone: 8.6.1
Component: Compiler | Version: 8.4.3
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): Phab:D4919 | Wiki Page:
-------------------------------------+-------------------------------------
I think that `lintIdUnfolding` could use `maybeUnfoldingTemplate` rather
than the complicated linting of `DFunUnfolding`. Seeing as
`maybeUnfoldingTemplate` is the thing which is used when inlining, it
makes sense to use that rather than some ad-hoc reconstruction.
See https://phabricator.haskell.org/D4919 for the patch
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15332>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list