[GHC] #16232: Add setField to HasField
GHC
ghc-devs at haskell.org
Fri Jan 25 14:32:05 UTC 2019
#16232: Add setField to HasField
-------------------------------------+-------------------------------------
Reporter: adamgundry | Owner: adamgundry
Type: feature request | Status: new
Priority: normal | Milestone: 8.10.1
Component: Compiler (Type | Version: 8.7
checker) |
Resolution: | Keywords: ORF
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by mpickering):
You are right that does seem a bit tricky.
Another possibility is generating renamed syntax when solving the
constraint then type checking it and desugaring it using `tcExpr` and
`dsExpr` to generate the necessary evidence? This is all possible to do in
`ClsInst`.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/16232#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list