Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Haskell binding for Bullet physics engine
Haskell C++ C Other
branch: master

Haskell binding for Bullet physics engine.

Binding for bullet-2.79.


  • get bullet-2.79 physics engine from

  • compile and install the library:

    • cd bullet-2.79
    • cmake . -DBUILD_DEMOS=NO (on OSX for 32 bit GHC also add -DCMAKE_OSX_ARCHITECTURES='i386')
    • make
    • sudo make install
  • compile and install the haskell bullet binding:

    • cabal install (run command in the bullet.cabal's directory)
  • compile and run the example (needs OpenGL and GLUT):

    • cd Examples
    • ghc --make -O2 BulletExample
    • ./BulletExample

Howto generate binding:

  • copy and run prepareHeaders.hs executable to bullet/src
  • move the generated bullet directory to bullet binding directory
  • from cbits folder copy HaskellBulletAPI.h and GLDebugDrawer.h to generated bullet folder and copy to generated bullet folder also
  • execute in bullet directory
  • copy generated files
    • (Physics directory to binding directory)
    • (Bullet.[h/cpp] to cbits directory)
Something went wrong with that request. Please try again.