[GHC] #11376: Inconsistent specified type variables among functions and datatypes/classes when using -XTypeApplications
GHC
ghc-devs at haskell.org
Tue Mar 29 07:32:31 UTC 2016
#11376: Inconsistent specified type variables among functions and datatypes/classes
when using -XTypeApplications
-------------------------------------+-------------------------------------
Reporter: RyanGlScott | Owner: goldfire
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler (Type | Version: 8.1
checker) | Keywords:
Resolution: | TypeApplications
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: Other | Test Case:
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by simonpj):
Hang on. Isn't there already somewhere in VTA where you already
instantiate where it's not strictly necessary? Maybe somewhere like
{{{
f x = g
}}}
where `g` has a polytype. With lazy instantiation you might well get an
inferred type
{{{
f :: forall a. Eq a => a -> forall b. Ord b => blah
}}}
but I think we don't.
I think there is somewhere this happens, although I am not sure where.
The `:t` context looks to me like another place where this eager
instantiation should happen, no?
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11376#comment:18>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list