SG is a small geometry library by Neil Brown for dealing with vectors, points, lines, simple shapes, and their various intersection tests written in Haskell. It is now available in AUR. You can try it out with the sgdemo app.
Here’s a video exercising the library.
On Arch Linux, you can get it with:
$ yaourt sgdemo
Everywhere else, with:
$ cabal install sgdemo