A Haskell library that provides the function openBrowser that, given a URL or
other item associated with a web browser, yields an IO action that seeks to open
the item in the user’s preferred web browser.
Supported operating systems are Windows, macOS, Linux and BSD.
Originally developed by rightfold.
Changes
Changelog for open-browser
All notable changes to this project will be documented in this file.
On Unix-like operating systems, use Haskell to silence the opening
application or script, rather than the sh shell on Linux and BSD.
Add utility openBrowserWithExitCode, to help with debugging failure.
Improve Haddock documentation.
0.3.0.1 - 2025-03-17
On Windows, remove unnecessary dependency on process.
Improve Haddock documentation.
0.3.0.0 - 2025-03-16
Make operating system-related choices at compilation. The function will never
succeed on unsupported operating systems, rather than than throwing an
ErrorCall exception.
Drop support for 32-bit Windows.
0.2.1.1 - 2025-03-15
Add CHANGELOG.md and README.md.
Add stack.yaml and stack.yaml.lock to package description.
Example executable renamed open-browser-example (from example).
The building of the example executable now requires Cabal flag example
(default: false).