Popularity
3.2
Growing
Activity
0.0
Stable
2
4
0

Monthly Downloads: 7
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Development     FFI     Bindings    

bindings-wlc alternatives and similar packages

Based on the "bindings" category.
Alternatively, view bindings-wlc alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of bindings-wlc or a related project?

Add another 'bindings' Package

README

bindings-wlc

WIP bindings against libwlc

Using Bindings.WLC

Low level bindings to WLC via bindings-dsl

do
  logger <- mk'log_handler_cb (\_ -> print)
  c'wlc_log_set_handler logger

  c'wlc_init2

  created_cb <- mk'output_created_cb (\output -> do
    putStrLn "Output created"
    return True)
  c'wlc_set_output_created_cb created_cb

  c'wlc_run

Using System.WLC

System.WLC builds on Binding.WLC

do
  initialize
  logHandler (\tag text -> putStrLn $ stringTag tag ++ " " ++ text) -- Log all the things
  dispatchEvent (PointerMotion (\_ _ ptr -> do pointerSetPosition ptr; return True)) -- Allow mouse movement
  dispatchEvent (ViewCreated (\view -> do viewBringToFront view; viewFocus view; return True)) -- Pop views to the front
  dispatchEvent (CompositorReady $ exec "weston-terminal" []) -- Launch weston-terminal when we're ready
  run