Category Archives: Haskell

The One Function per Typeclass Rule

After about five years programming in Haskell, I think we need a rule:  Only put one function in a typeclass. Why?  Because inevitably someone comes along with a data type for which one or the other function of a typeclass … Continue reading

Posted in Haskell | 5 Comments

Memoized Dataflow Streams

In reactive programming we can choose between two models: “pull,” in which we run a computation each time output is required, and “push,” in which we run the computation each time input arrives. Which model we use depends on whether … Continue reading

Posted in Haskell | 1 Comment

A Brutal Introduction to Arrows

Imagine being killed by a bow and arrow. That would suck, an arrow killed you? They would never solve the crime. "Look at that dead guy. Let’s go that way." — Mitch Hedberg I seem to be one of the … Continue reading

Posted in Haskell | 2 Comments