[GHC] #8883: FlexibleContexts checking should happen also on inferred signature
GHC
ghc-devs at haskell.org
Fri Apr 18 22:42:37 UTC 2014
#8883: FlexibleContexts checking should happen also on inferred signature
-------------------------------------+------------------------------------
Reporter: Blaisorblade | Owner: jstolarek
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 7.6.3
Resolution: | Keywords:
Operating System: Unknown/Multiple | Architecture: Unknown/Multiple
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+------------------------------------
Comment (by simonpj):
Well if you have
{{{
f x = g x
g x = f (h x)
}}}
then `tcPolyInfer` will be called on the two bindings together. If you
happened to get a badly-shaped inferred theta, do you want to report an
error for f, or for g, or both? I think just one would do, which is what
you have implemented. If you want one per function, put the check in
`mkExport` instead. Either way it's not a big deal.
Comments, with an example, would be a Good Thing.
Simon
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8883#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list