#3822: guards in arrow notation (Arrows extension) case statement cause compiler panic -----------------------------------------+---------------------------------- Reporter: StephenBlackheath | Owner: ross Type: bug | Status: new Priority: normal | Milestone: 6.12.2 Component: Compiler | Version: 6.12.1 Keywords: arrows guards case panic | Difficulty: Os: Unknown/Multiple | Testcase: patternGuard.hs Architecture: Unknown/Multiple | Failure: Compile-time crash -----------------------------------------+----------------------------------
Comment(by ross): Replying to [comment:7 simonpj]: > Ross: can you see what is wrong? Core Lint gives the error below after desugaring: Yes, variables occurring only in guards are not being recognized as being used, so they're discarded from the pipeline before reaching the case. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3822#comment:8> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs