
#15637: Ambiguous type variables in GeneralisedNewtypeDeriving -------------------------------------+------------------------------------- Reporter: i-am-tom | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: 8.6.1 Component: Compiler | Version: 8.4.3 Resolution: | Keywords: | GeneralisedNewtypeDeriving, | GeneralizedNewtypeDeriving 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 simonpj): I suppose we could generate {{{ Test.f = coerce @String @String (Test.f @()) }}} that is, explicitly instantiating `f`. (Then maybe we could omit the second type arg to `coerce`; I'm not sure.) Ryan? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15637#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler