University of Oxford Logo University of OxfordDepartment of Computer Science - Home

Effective Reasoning about Effectful Traversals

Jeremy Gibbons and Richard Bird

Abstract

A recent paper by Graham Hutton and Diana Fulger ("Reasoning about Effects: Seeing the Wood through the Trees", Trends in Functional Programming, 2008) addresses the problem of reasoning about effectful functional programs, using a relabelling function on binary trees as a simple example. We argue that their approach is less effective than it might be, because they miss two opportunities for higher-level reasoning: abstraction from the particular kinds of effect (the choice of monad) and from the pattern of recursion (the flow of computation). We present two alternative approaches using properties of idiomatic traversals, which cleanly separate the twin concerns of the kinds of effect and the pattern of recursion.

Details

Month

March

Note

Submitted for publication

Year

2011

Links

BibTeX

Link (pdf)

Related pages

People