[GHC] #4459: Polymorphic Data.Dynamic
GHC
cvs-ghc at haskell.org
Thu Jul 14 17:30:01 CEST 2011
#4459: Polymorphic Data.Dynamic
-----------------------------------------------------+----------------------
Reporter: vivian | Owner: vivian
Type: feature request | Status: new
Priority: normal | Milestone: 7.4.1
Component: GHC API | Version: 7.1
Keywords: polymorphic, dynamic, class, linking | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking: 4316
Architecture: Unknown/Multiple | Failure: None/Unknown
-----------------------------------------------------+----------------------
Comment(by simonpj):
The way to generate dictionaries is to call the type checker. As
described in the Commentary
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler/HscMain, and
http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler, the type
checker takes a `(HsExpr Name)`, with no `HsWrap` constructors, and
returns an `(HsExpr Id)`, replete with `HsWrap` constructors that do the
dictionary application.
It's hard to explain in a few lines! Have you read the Commentary?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4459#comment:21>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list