[GHC] #12989: ($) can have a more general type
GHC
ghc-devs at haskell.org
Sat Jul 29 00:29:02 UTC 2017
#12989: ($) can have a more general type
-------------------------------------+-------------------------------------
Reporter: dfeuer | Owner: (none)
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler (Type | Version: 8.0.1
checker) | Keywords:
Resolution: | LevityPolymorphism
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 andrewthad):
One drawback of giving `($)` the more general type is than `(&)` can no
longer be made symmetric with it. That is, we have no way of writing:
{{{
(&) :: forall (r1 :: RuntimeRep) (r2 :: RuntimeRep)
(a :: TYPE r1) (b :: TYPE r2).
a -> (a -> b) -> b
}}}
This probably isn't that big of a deal, but it is a little weird.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12989#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list