How could I go about writing a Haskell library to provide input functionality similar to that provided by SDL or GLFW? Specifically, how would I go about grabbing device events (e.g. mouse, keyboard, joystick) and system events (e.g. quit, resize, window move, focus).
How could I go about writing a Haskell library to provide input functionality similar
Share
Make FFI bindings to the primitives provided by the platform (or library) you’re building on.
Use these primitives to implement higher level abstractions.