[GHC] #14286: Different behavior between type application and type annotation.

GHC ghc-devs at haskell.org
Wed Sep 27 11:17:38 UTC 2017


#14286: Different behavior between type application and type annotation.
-------------------------------------+-------------------------------------
        Reporter:  vagarenko         |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1
      Resolution:                    |             Keywords:
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 goldfire):

 The type you're passing to `foo` instantiates `t`. I think you want

 {{{#!hs
 baz = foo @(() -> Maybe String -> [()] -> IO ()) () (Just "baz") [()]
 }}}

 which works for me.

 Please close if you agree. Thanks!

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


More information about the ghc-tickets mailing list