hbro-0.5.0: A suckless minimal KISSy browser

Safe HaskellNone

Hbro.Core

Synopsis

Documentation

data Browser Source

Constructors

Browser 

Fields

mOptions :: CliOptions

Commandline options

mGUI :: GUI

Graphical widgets

data Configuration Source

Constructors

Configuration 

Fields

mHomePage :: String

Startup page

mSocketDir :: String

Path to socket directory (/tmp for example)

mUIFile :: String

Path to XML file describing UI (used by GtkBuilder)

mKeyBindings :: KeyBindingsList

List of keybindings

mWebSettings :: IO WebSettings

Web settings

mAtStartUp :: GUI -> IO ()

Custom startup instructions

mError :: Maybe String

Error

type KeyBindingsList = [(([Modifier], String), GUI -> IO ())]Source

realMain :: Configuration -> IO ()Source

Entry point of the application. | Parse arguments and step down in favour of initBrowser.

initBrowser :: Configuration -> CliOptions -> IO ()Source

Application's main function. Create browser and load homepage.

showWebInspector :: GUI -> IO ()Source

Show web inspector for current webpage.

loadURL :: String -> GUI -> IO ()Source

Load given URL in the browser.

loadURL' :: URL -> GUI -> IO ()Source

Backend function for loadURL.