
#8387: View patterns + pattern bindings: finnicky about scoping ----------------------------------------------+---------------------------- Reporter: tinctorius | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects valid program | Unknown/Multiple Test Case: | Difficulty: Unknown Blocking: | Blocked By: | Related Tickets: ----------------------------------------------+---------------------------- Comment (by simonpj): I remember this as being very fiddly, so I opted for a simple solution. It's hard to motivate fancy footwork in the compiler without having some pretty compelling use-cases that motivate it. If you (and preferably a bunch of others) have really run up against this restriction in a big way, please do describe the situation, and why the workarounds are unsatisfactory. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8387#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler