@hackage fltkhs0.4.0.8

FLTK bindings

Fltkhs - A Haskell Binding to the FLTK GUI Library

Fltkhs aims to be a complete Haskell binding to the [FLTK GUI library] 1.

NOTE: As of version 0.4.0.0, due to the introduction of closed type families, only GHC >= 7.8.1 is supported.

Quick Install

Linux and *BSD

Install FLTK-1.3.3 from source:

   > wget http://fltk.org/pub/fltk/1.3.3/fltk-1.3.3-source.tar.gz
   > tar -zxvf fltk-1.3.3-source.tar.gz
   > cd fltk-1.3.3
   > configure --enable-shared --enable-gl
   > make
   > sudo make install
   > fltk-config --version
   1.3.3

Build the FLTKHS skeleton project:

   > git clone http://github.com/deech/fltkhs-hello-world
   > cd fltkhs-hello-world
   > stack install
   # About 6-8 minutes passes ...
   > stack exec fltkhs-hello-world

OSX Yosemite only

Install FLTK-1.3.3 from Brew:

   > brew install autoconf
   > brew install fltk
   > fltk-config --version
   1.3.3

Build the FLTKHS skeleton project:

   > git clone http://github.com/deech/fltkhs-hello-world
   > cd fltkhs-hello-world
   > stack install
   # About 6-8 minutes passes ...
   > stack exec fltkhs-hello-world

OSX El Capitan only

Install the development version of FLTK from Brew:

  > brew install --devel fltk
  > fltk-config --version
  1.3.4

Build the FLTKHS skeleton project:

   > git clone http://github.com/deech/fltkhs-hello-world
   > cd fltkhs-hello-world
   > stack install
   # About 6-8 minutes passes ...
   > stack exec fltkhs-hello-world

Windows

Please see the detailed Windows installation instructions

Screenshots

Drawing with FLTKHS

A table of widgets

A complex tree Done completely using Fluid. Notice how tree nodes can be arbitrary widgets.

Demos

A number of demos are also available in the [fltkhs-demos] 4 and the [fltkhs-fluid-demos] 5 packages.