Modml-core is a project mainly written in Haskell, it's free.
The core of the ModML functional mathematical modelling language