-
Snipp.IO: A pastebin made out of Haskell, Yesod and mongodb
I’ve recently been learning about the Haskell-based Yesod web framework. This is about my experience of building a simple pastebin with Yesod, mongodb and Haskell, which took a couple of evening sessions and a Saturday afternoon.The first question to answer is why choos …
- On:
-
Of Birthday Problems, Haskell and Floating Point Precision
Learning Haskell by working my way through the Real World Haskell book and the huge variety of online resources recently has reignited my curiosity about “proper” computer science. The sort with maths. I’ve picked up most of my maths as a side effect of hacking code, so I have b …
- On:
-
Making a naïve XML parser — Part 1: Haskell and Parsec
In this mini-series I look at building a minimally functional XML parser; I build one first of all using Haskell’s Parsec library and then in Part Two I use Perl to build an analogous XML parser. I have recently been working my way through the Real World Haskell bo …
- On:
-
Solved: Real World Haskell Chapter 16 and Parsec3
Another quick fix for an annoyance I found whilst working my way through the Real World Haskell book. This time it’s in Chapter 16 where we are learning about applicative functors and how to use Parsec in an applicative stylee rather than monadically. As it turns out there have been s …
- On:
-
Haskell: PGM Parser from Chapter 10 of Real World Haskell
I am working my way through the Real World Haskell Book at the moment and finding it fun and challenging. In chapter 10 is devoted to parsing PGM files. One of the excersises is to extend the code from the book to deal with ASCII PGM files as well as raw ones. This is how I did it, along with a c …
- On:
-
Haskell — Day Three
The last day of my seven languages odyssey has been without doubt the most brain frying of all. I needed to spend about four days of fairly intense study to get close to a viable maze solver. Even now I doubt very much that its anything more than a naïve and buggy implementation. Still, the good …
- On:
-
Haskell — Day Two (Part Two)
Well, I thought that I’d have the time to do all the extra credit excercises for Haskell Day Two. But as it turned out I got stuck on the justify some text question. I guess this sort of question gets easier, but I couldn’t get the structure I wanted — a list of two tuples of …
- On:
-
Haskell — Day Two
Day two of the Haskell section has been once again very challenging for me. I’m sure that some of the conceptual territory would be easier to navigate were I a proper mathematician. But, after some head/keyboard bashing and rather more than my usual couple of hours allotted to Seven Languag …
- On:
-
Haskell — Day One
The final of the seven languages is Haskell and so far it feels nice. Gone are Clojure's brackets and back to front syntax. Haskell is much more Erlang-esque, which may just be the module declarations and the list comprehensions. It even feels a little perlish with ::s and $s here and there. Tate …
- On:
-
Clojure — Day Three
I suppose it was inevitable after my cockiness on day two that day three should be a challenging one. I felt very stretched; mostly I was getting stuck on syntax, though. The actual coding was great fun. I’ve come rather to like Clojure; I definitely think it’ll be one of the languages I …
- On: