
#8503: New GeneralizedNewtypeDeriving check still isn't permissive enough -------------------------------------+------------------------------------ Reporter: goldfire | Owner: goldfire Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.7 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: None/Unknown | Difficulty: Unknown Test Case: | Blocked By: 8548 Blocking: | Related Tickets: #8541 -------------------------------------+------------------------------------ Comment (by nomeata): Ok, the problem were two missing characters: {{{ @@ -432,7 +432,7 @@ renameDeriv is_boot inst_infos bagBinds = -- Bring the right type variables into -- scope (yuk), and rename the method binds ASSERT( null sigs ) - bindLocalNames (map Var.varName tyvars) $ + bindLocalNamesFV (map Var.varName tyvars) $ do { (rn_binds, fvs) <- rnMethodBinds (is_cls_nm inst) (\_ -> []) binds ; let binds' = InstBindings { ib_binds = rn_binds , ib_pragmas = [] }}} but now everything seems to work. I’m running validate right now. If it goes through, any objections to pushing wip/T8503 to master and closing this bug? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8503#comment:37 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler