simple-observer: The Observer pattern

[ bsd3, control, library ] [ Propose Tags ]

This is a simple Haskell implementation of the Observer pattern, specified as a typeclass with one example instance (demonstrating synchronous notifications). It is based on Observable.hs by Bastiaan Heeren, originally from

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS] 0.0.1
Dependencies base (>=4 && <5) [details]
License BSD-3-Clause
Copyright Andy Gimblett <>
Author Andy Gimblett <>
Maintainer Andy Gimblett <>
Category Control
Home page
Source repo head: git clone
Uploaded by AndyGimblett at 2009-11-11T22:09:59Z
Distributions NixOS:0.0.1
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 1317 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for simple-observer-0.0.1

[back to package description]

This is a Haskell implementation of the Observer design pattern [1,2],
providing a typeclass and an example implementation (Synchronous)
which is perfectly usable in its own right.

This package is based on Observable.hs by Bastiaan Heeren [3],
originally published as part of an exercise [4] for his students.  It
has been modified, extended and packaged by Andy Gimblett [5,6].


* Implement a mechanism for removal of observers.  Consider Tom
  Lokhorst's suggestion on haskell-cafe [7].


2009.11.11 v0.0.1 - first release, renamed from observer to
                    simple-observer in recognition that there are more
                    sophisticated ways to skin this particular cat.

2009.10.30 v0.0.0 - first Cabalised version, unreleased.


[1] Gamma et al: `Design Patterns: Elements of Reusable
    Object-Oriented Software', Addison-Wesley, 1994.