stan-0.1.2.1: Haskell STatic ANalyser
Copyright(c) 2020 Kowainik
LicenseMPL-2.0
MaintainerKowainik <xrom.xkov@gmail.com>
Safe HaskellSafe-Inferred
LanguageHaskell2010

Stan.Browse

Description

Contains implementation of a function that opens a given file in a browser.

Synopsis

Documentation

openBrowser :: FilePath -> IO () Source #

Open a given file in a browser. The function has the following algorithm:

  • Check the BROWSER environment variable
  • If it's not set, try to guess browser depending on OS
  • If unsuccsessful, print a message