Category Archives: Haskell

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

Analyzing logfiles (2)

Following on from yesterday’s post, here is a similar tool implemented in Haskell. This one is to process a log format we use for various applications, which is <timestamp>: key1=value1 key2=value2 … keyn=valuen There may be any number of keys, … Continue reading

Posted in Haskell, Ocaml, SQLite | 3 Comments