Experiments with running a webkit2gtk backed UI in Haskell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gluon
lib/Gluon
plugin
.gitignore
README.md
gi-webkit2webextension.nix
gluon.cabal
shell.nix

README.md

N.B.: This is one of those projects where you need to read the instructions, a simple cabal run won't work, apologies!

What

This project demonstrates how to write a HTML application in Haskell via the webkit2 embedding API.

This code does not run a webserver. It uses the GObject introspection API to access the DOM directly.

Quick start

git clone https://github.com/teh/haskell-webkit2gtk
nix-shell  # stackage: not tried yet if anyone wants to pick that up
cabal build gluon
cabal build plugin
dist/build/gluon/gluon --plugin dist/build/plugin/plugin

SCSS resources

All scss resources are injected as rendered CSS into <head>. Pass them on the command line:

dist/build/gluon/gluon --scss /home/tom/src/bootstrap/scss/bootstrap.scss --plugin dist/build/plugin/plugin