[GHC] #14286: Different behavior between type application and type annotation.
GHC
ghc-devs at haskell.org
Wed Sep 27 11:28:30 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 vagarenko):
Silly me.
Of course `foo () (Just "bar") [()] :: IO ()` means type of `foo` applied
to 3 arguments is `IO ()`
while `foo @(IO ())` means `foo` has no arguments.
Sorry for the noise.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14286#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list