terrahs is a a free and open source software component that enables the development of geographical applications in a functional language, using the data handling capabilities of TerraLib.
TerraLib is a C++ library that supports different spatial database management systems, and that includes a large number of spatial algorithms.