Skip to content
Snippets Groups Projects
Commit 071167c7 authored by rwbarton's avatar rwbarton
Browse files

User's Guide: Fix compiler plugin example (#9641, #7682)

The previous fix was incorrectly eta-reduced.
parent f636faa7
No related merge requests found
......@@ -226,8 +226,8 @@ install _ todo = do
return (CoreDoPluginPass "Say name" pass : todo)
pass :: ModGuts -> CoreM ModGuts
pass = do dflags <- getDynFlags
bindsOnlyPass (mapM (printBind dflags))
pass guts = do dflags <- getDynFlags
bindsOnlyPass (mapM (printBind dflags)) guts
where printBind :: DynFlags -> CoreBind -> CoreM CoreBind
printBind dflags bndr@(NonRec b _) = do
putMsgS $ "Non-recursive binding named " ++ showSDoc dflags (ppr b)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment