
#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