[GHC] #13680: Can't use TypeApplications with empty list expression

GHC ghc-devs at haskell.org
Wed Jun 21 17:55:03 UTC 2017


#13680: Can't use TypeApplications with empty list expression
-------------------------------------+-------------------------------------
        Reporter:  RyanGlScott       |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler (Type    |              Version:  8.0.1
  checker)                           |             Keywords:
      Resolution:                    |  TypeApplications
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 RyanGlScott):

 Actually, this limitation applies to more than just empty lists:

 {{{
 $ ~/Software/ghc-8.2.0.20170507/bin/ghci -fprint-explicit-foralls
 GHCi, version 8.2.0.20170507: http://www.haskell.org/ghc/  :? for help
 Loaded GHCi configuration from /Users/rscott/.ghci
 λ> :type +v [1]
 [1] :: forall {a}. Num a => [a]
 λ> :type +v [1] @Int

 <interactive>:1:5: error: parse error on input ‘@’
 }}}

 So perhaps I was barking up the wrong tree in my investigation in
 comment:4.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13680#comment:5>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list