Category Archives: Haskell


Arrived today Pearls of Functional Algorithm Design by Richard Bird. I’ll enjoy working through it. I still haven’t finished The Haskell Alphabet tho’… So much to learn, so little time. My Haskell has fallen a bit behind my OCaml, in … Continue reading

Posted in Haskell, Ocaml, Random thoughts | 1 Comment

Haskell articles

A couple of very good Haskell articles I have seen recently: Introducing the Monads by Aditya Siram. An great overview which serves to confirm/reinforce things that I have learnt or figured out so far. Tho’ I think uses return where … Continue reading

Posted in Haskell, Random thoughts | Leave a comment

The Haskell Alphabet

The Haskell Alphabet. Brilliant! I’m going to work through all those links. I may be a while…

Posted in Haskell | Leave a comment

Code folding in Emacs

Code folding is a feature I’ve taken for granted in Windows IDEs, but now I am using Emacs more and more, I wanted it there too, and it turns out getting it is straightforward enough. Download Folding Mode and save … Continue reading

Posted in Emacs, Haskell, Linux, Ocaml | 5 Comments

Scope in database code (2)

Following on from a previous post, here is some simple database code in hopefully idiomatic Haskell. My strategy is Use the Reader monad to pass the database connection around the functions that use it. The description, computations which read values … Continue reading

Posted in Haskell, SQLite | 6 Comments

Scope in database code

When dealing with relational databases, there are three major types of data structure/objects that we need. The actual names vary between platform and API, but generally there will be, in order of creation: A connection. This is often called lda … Continue reading

Posted in Haskell, Ocaml, Oracle, SQLite | 4 Comments

The List Monad in Python terms

Understanding Monads Via Python List Comprehensions

Posted in Haskell, Python | Leave a comment