title: Haskell Variable not in scope
body: <p>I am configuring my xmonad file to send the Stdout to a SpawnPipe per the documentation at <a href="https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Hooks-DynamicLog.html#v:ppOutput" rel="nofollow noreferrer">https://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Hooks-DynamicLog.html#v:ppOutput</a></p>
  <p>Here is the code that I have so far... I am sure I am just missing a way to pass h along to the myLogHook function! - Thanks for your help.</p>
  <pre><code>myLogHook = dynamicLogWithPP $ def { ppOutput = hPutStrLn h }
  
  main = do
  h &lt;- spawnPipe &quot;xmobar ~/.xmobar/.xmobarrc&quot;
  xmonad $ docks defaults
  
  defaults = def {
    -- simple stuff
      terminal           = myTerminal,
      focusFollowsMouse  = myFocusFollowsMouse,
      clickJustFocuses   = myClickJustFocuses,
      borderWidth        = myBorderWidth,
      modMask            = myModMask,
      workspaces         = myWorkspaces,
      normalBorderColor  = myNormalBorderColor,
      focusedBorderColor = myFocusedBorderColor,
  
    -- key bindings
      keys               = myKeys,
      mouseBindings      = myMouseBindings,
  
    -- hooks, layouts
      layoutHook         = myLayout,
      manageHook         = myManageHook,
      handleEventHook    = myEventHook,
      logHook            = myLogHook,
      startupHook        = myStartupHook
  }
  </code></pre>