Hi,

Here is my Haskell implementation of the Shamos and Hoey algorithm for detecting segments intersection in the plane:

http://neonstorm242.blogspot.com/2010/12/sweep-line-algorithm-for-detection-of.html

I'm new to Haskell, so any useful comments will be appreciated.

- Eran