[GHC] #13311: Audit shady uses of tcSplitSigmaTy
GHC
ghc-devs at haskell.org
Sun Feb 26 16:45:31 UTC 2017
#13311: Audit shady uses of tcSplitSigmaTy
-------------------------------------+-------------------------------------
Reporter: RyanGlScott | Owner: RyanGlScott
Type: task | Status: new
Priority: normal | Milestone: 8.4.1
Component: Compiler (Type | Version: 8.1
checker) |
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):
Replying to [comment:3 RyanGlScott]:
> When you type this into GHCi:
>
> {{{
> λ> let a :: forall a b. (Num a, Num b) => (# a, b #); !a = (# 1, 2 #)
> }}}
>
> you get this error:
>
> {{{
> You can't mix polymorphic and unlifted bindings
> !a = (# 1, 2 #)
> Probable fix: add a type signature
> }}}
I'm confused. That's not an unlifted binding!
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13311#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list