
#15108: Panic: collectNBinders -------------------------------------+------------------------------------- Reporter: cdisselkoen | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.6.1 Component: Profiling | Version: 8.4.2 Resolution: fixed | Keywords: panic | collectNBinders Operating System: Linux | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by nomeata): Have you considered adding {{{ | JoinNonRec v [v] (Expr v) | JoinRec [(v, [v], Expr v)] }}} to `Bind v`? It seems that a great lot of code has to zoom past the binders of a join point, causing bugs. With these constructors, one would be forced to handle them properly – and code that does not need to pay attention can use a pattern synonym that recreates the original view. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/15108#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler