Here's my first-cut, simplest, simplex haskell code:

https://github.com/jimstutt/Simplex/blob/master/src/Simplex.hs