
#10381: Type-checking failure with RankNTypes and RebindableSyntax -------------------------------------+------------------------------------- Reporter: goldfire | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: None/Unknown | Unknown/Multiple Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Comment (by goldfire): Good point. But perhaps it's worth deviating from the report desugaring in the case where the LHS of the `<-` is a bare variable. Desugaring `a <- b; c` to `b >>= \a -> c` instead of the more verbose version seems to have the same runtime semantics but perhaps better compile-time behavior. Though this isn't ruining my day, as such, I'll name myself as a Real Client, for once, as this happened while doing something other than directly trying to befuddle GHC. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10381#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler