Skip to content

Latest commit

 

History

History

examples-light

webviewhs logo

How do I use webviewhs light?

How do I build and run these examples?

If you're using stack:

# --flag webviewhs:light is redundant as it is listed in the stack.yaml file.
# However, it is shown here for demonstration purposes.
stack build --flag webviewhs:light && \
stack exec -- how-do-i-communicate-with-haskell-from-javascript && \
stack exec -- how-do-i-inject-some-custom-css-into-the-window && \
stack exec -- how-do-i-log-some-debug-information

If you're using cabal:

cabal sandbox init && \
cabal sandbox add-source ../ && \
cabal --require-sandbox install -j --constraint="webviewhs +light" && \
cabal --require-sandbox exec -- how-do-i-communicate-with-haskell-from-javascript && \
cabal --require-sandbox exec -- how-do-i-inject-some-custom-css-into-the-window && \
cabal --require-sandbox exec -- how-do-i-log-some-debug-information

Who wrote webviewhs?

(C) 2018 David Lettier
lettier.com

Who wrote webview?

Copyright (c) 2017 Serge Zaitsev