@@ -401,8 +401,8 @@ ob = \case
401401 ObCommand_Watch interpretPathsList -> withInterpretPaths interpretPathsList runWatch
402402 ObCommand_Shell (ShellOpts shellAttr interpretPathsList cmd) -> withInterpretPaths interpretPathsList $ \root interpretPaths ->
403403 nixShellForInterpretPaths False shellAttr root interpretPaths (pure . bash . BSU.fromString <$> cmd)
404− ObCommand_Doc shellAttr pkgs -> withProjectRoot "." $ \root ->
405− nixShellForInterpretPaths True shellAttr root emptyPathTree $ Just [haddockCommand pkgs]
404+ ObCommand_Doc shellAttr pkgs -> withInterpretPaths [] $ \root interpretPaths ->
405+ nixShellForInterpretPaths True shellAttr root interpretPaths $ Just [haddockCommand pkgs]
406406 ObCommand_Hoogle shell' port -> withProjectRoot "." $ \root -> do
407407 nixShellWithHoogle root True shell' $ Just $ fmap (bash . BSU.fromString) ["hoogle", "server", "-p", show port, "--local"]
408408 ObCommand_Internal icmd -> case icmd of