hbro-0.9.0.0: Minimal KISS compliant browser

Safe HaskellSafe-Infered

Hbro.Core

Contents

Synopsis

K-monad

runK :: Environment -> KT m a -> m aSource

runReaderT for K-monad

mapK :: (m a -> n b) -> KT m a -> KT n bSource

mapReaderT for K-monad.

mapK2 :: ((c -> m a) -> n b) -> (c -> KT m a) -> KT n bSource

Like mapK, but monadic-input of filter can do little reading.

Util

with :: (Environment -> a) -> (a -> IO b) -> K bSource

withK :: (Environment -> a) -> (a -> K b) -> K bSource

withURI :: (URI -> K ()) -> K ()Source

Read state

getState :: Typeable a => String -> a -> K (IORef a)Source

Browse

Display

data Axis Source

Constructors

Horizontal 
Vertical 

scroll :: Axis -> Position -> K ()Source

General scrolling command.

Misc

searchText :: CaseSensitivity -> Direction -> Wrap -> String -> K BoolSource

Wrapper around webViewSearchText, provided for convenience

toggleSourceMode :: K ()Source

Toggle source display. Current implementation forces a refresh of current web page, which may be undesired.

printPage :: K ()Source

Wrapper around webFramePrint function, provided for convenience.

executeJSFile :: FilePath -> WebView -> IO ()Source

Execute a javascript file on current webpage.