
#13648: ApplicativeDo selects "GHC.Base.Monad.return" when actions are used without patterns. -------------------------------------+------------------------------------- Reporter: AaronFriel | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.2.1-rc1 Resolution: | Keywords: ApplicativeDo Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): As you point out, the relevant bit of code is in `RnExpr`. In particular, I believe that `stmtTreeToStmts` is relevant. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/13648#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler