Building a Blog in Haskell with Yesod–Giving Back

Posted on August 26, 2019 by Riccardo

Building a Blog in Haskell with Yesod (Series)

Building a Blog in Haskell with Yesod–The Basic StructureBuilding a Blog in Haskell with Yesod–Using a DatabaseBuilding a Blog in Haskell with Yesod–AuthenticationBuilding a Blog in Haskell with Yesod–AuthorizationBuilding a Blog in Haskell with Yesod–Returning JSONBuilding a Blog in Haskell with Yesod–JSON APIBuilding a Blog in Haskell with Yesod–Giving Back

This is a series about Yesod: a Haskell web framework that follows a similar philosophy to Rails. In fact, it is strongly opinionated and provides a lot of functionality out of the box.

A good read about Yesod is available online for free: Developing web applications with Haskell and Yesod. That's why this series will be a commentary of the commits from a repo we will use to develop a super simple blog.

In other words, this won't be good material to learn how to use Yesod. However, it will hopefully give an overview of how the framework works.

Giving Back

Last week has been a very special one. First of all, I had the chance of spending time with a couple of hundred Software Crafters: the SoCraTes conference has been the highlight of my year for the last three years. Also, helping with the organization is the way I try to give back to the community.

Something else happened last week that I'm really proud of. I got my first Pull Request merged for an open source project: I'm officially a Haskell Yesod contributor!!

The inspiration came from last week's post:

Unfortunately, Yesod.Auth.Dummy does not support registration via JSON requests. Therefore, we have to patch it ourselves.

That's where I asked if a PR was of any interest to the maintainers, stared at the screen for several hours, copy / pasted some code from other parts of the codebase and submitted the new feature for review.

Special thanks to Michael, the author of Yesod, for the support and encouragement! I'm looking forward to the next Pull Request.

PinkLetter

It's one of the selected few I follow every week – Mateusz

Tired of RELEARNING webdev stuff?

  • A 100+ page book with the best links I curated over the years
  • An email once a week full of timeless software wisdom
  • Your recommended weekly dose of pink
  • Try before you buy? Check the archives.