[GHC] #11409: Cannot instantiate literals using TypeApplications
GHC
ghc-devs at haskell.org
Mon Jan 11 22:53:32 UTC 2016
#11409: Cannot instantiate literals using TypeApplications
-------------------------------------+-------------------------------------
Reporter: Feuerbach | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1-rc1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: None/Unknown
Unknown/Multiple |
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
{{{
GHCi, version 8.0.1.20160110: http://www.haskell.org/ghc/ :? for help
Prelude> :set -XTypeApplications -fprint-explicit-foralls
Prelude> :t 42
42 :: forall {a}. Num a => a
Prelude> 42 @Int
<interactive>:3:1: error:
• Cannot not apply expression of type ‘a0’
to a visible type argument ‘Int’
• In the expression: 42 @Int
In an equation for ‘it’: it = 42 @Int
}}}
(Also, "cannot not" looks like a typo.)
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11409>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list