Stack Builders logo
Arrow icon Insights

Stack Builders Releases Inflections Library for Haskell

At Stack Builders, we'd like to see Haskell be the language that powers the next generation of dynamic web apps. We open-sourced a library that we wrote for string inflections to help move the language in this direction.

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.

You can contact Justin at justin@stackbuilders.com and follow him on Twitter.

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!

Published on: Mar. 4, 2014
Last updated: Dec. 20, 2024

Written by:

Subscribe to our blog

Join our community and get the latest articles, tips, and insights delivered straight to your inbox. Don’t miss it – subscribe now and be part of the conversation!
We care about your data. Check out our Privacy Policy.