Skip to content
  • Patrick Thomson's avatar
    d8c191d6
    Add --open flag to `cabal haddock` (#7550) · d8c191d6
    Patrick Thomson authored
    Both `stack` and other package managers like `cargo` have an `--open`
    flag for the common case of opening documentation locally for
    inspection or reference. This patch adds such a flag, which when set
    tries to open the HTML file associated with the generated
    documentation, using `open` on macOS, `start` on Windows, and
    `xdg-open` on all other Unices.
    
    Fixes #7366.
    d8c191d6
    Add --open flag to `cabal haddock` (#7550)
    Patrick Thomson authored
    Both `stack` and other package managers like `cargo` have an `--open`
    flag for the common case of opening documentation locally for
    inspection or reference. This patch adds such a flag, which when set
    tries to open the HTML file associated with the generated
    documentation, using `open` on macOS, `start` on Windows, and
    `xdg-open` on all other Unices.
    
    Fixes #7366.
Loading