title: Haskell Cabal+Nix: Generate local documentation for all dependencies in a project
body: <p>How can I generate documentation, possibly with a local <code>hoogle</code> server, with cabal and nix?</p>
  
  <p>I know there is a <code>cabal new-haddock</code> command, but it throws an error:</p>
  
  <pre><code>cabal: renderBuildTargetProblem: unexpected status (TargetDisabledByUser,Nothing)
  CallStack (from HasCallStack):
    error, called at ./Distribution/Client/CmdErrorMessages.hs:329:14 in main:Distribution.Client.CmdErrorMessages
  </code></pre>
  
  <p>And it seems like it is used to build documentation of my project, not of my dependencies anyway.</p>