[GHC] #15471: Polymorphism, typed splices and type inference don't mix
GHC
ghc-devs at haskell.org
Wed Sep 5 14:54:51 UTC 2018
#15471: Polymorphism, typed splices and type inference don't mix
-------------------------------------+-------------------------------------
Reporter: mpickering | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone: 8.8.1
Component: Template Haskell | Version: 8.4.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture:
Type of failure: GHC rejects | Unknown/Multiple
valid program | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by mpickering):
Metaocaml also does the right thing here for what it's worth.
{{{
# let id x = x;;
val id : 'a -> 'a = <fun>
# let t = .< id >.;;
val t : ('a -> 'a) code = .<(* CSP id *)>.
# let v = (!. t) 5;;
val v : int = 5
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/15471#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list