Type application for operator sections
With -fprint-explicit-foralls
(+ 1) :: forall {a}. Num a => a -> a
This means we cannot apply it to a type:
(+ 1) @Int :: Int -> Int
Since sections are sugar (+ 1)
could be given the type forall a. Num a => a -> a
instead.
Trac metadata
Trac field | Value |
---|---|
Version | 7.10.3 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |