Stack Builders Releases Inflections Library for Haskell
I recently wrote about how we'd like to see Haskell power the next generation of dynamic web applications. While I think that Haskell is a better language for programming on the web than Ruby in many ways, there is still a dearth of libraries available for Haskell compared to Ruby (there are 6,145 entries on Hackage as opposed to 71,649 on rubygems.org).
While working on http://stackbuilders.com, we needed a function to change an arbitrary string into one that is "safe" to display as part of a URL. It turns out that in Rails, this is part of a larger library called "Inflections" which also contains functions for string transformations like "camelize," "underscore" and "dasherize."
We didn't want all Haskell web programmers to have to write something like this themselves, so we packaged up our version of parameterize, along with a few other functions, into a cabal package with the same name as the popular ActiveSupport library.
We hope you find the Haskell inflections library useful! If you find any errors or if you'd like to help by porting your favorite function from Rails' Inflections, please open a pull request.
Interested in working on exciting client projects while helping to make Haskell a more viable option for creating robust, maintainable applications on the web? Talk to us to see if you would be a good fit for the Stack Builders team!