
#11409: Cannot instantiate literals using TypeApplications -------------------------------------+------------------------------------- Reporter: Feuerbach | Owner: (none) Type: feature request | Status: new Priority: normal | Milestone: 8.4.1 Component: Compiler | Version: 8.0.1-rc1 Resolution: | Keywords: | TypeApplications Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: #11352 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by adamgundry): Rather than defining `integerLit`, perhaps we should just treat a type application to an overloaded literal specially, and say that `5 @Int` desugars to `fromInteger @Int 5`? This would work with `RebindableSyntax` just fine. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11409#comment:25 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler