Skip to main content

Monadic, prompt lazy assertions in Haskell

Chitil, Olaf and Huch, Frank (2007) Monadic, prompt lazy assertions in Haskell. In: Shao, Zhong, ed. Programming Languages and Systems. Lecture Notes in Computer Science . Springer, Berlin, Germany, pp. 38-53. ISBN 978-3-540-76636-0. E-ISBN 978-3-540-76637-7. (doi:10.1007/978-3-540-76637-7_4) (KAR id:14528)

Language: English
Download (197kB) Preview
[thumbnail of monadicAssertions.pdf]
This file may not be suitable for users of assistive technology.
Request an accessible format
Official URL


Assertions test expected properties of run-time values without disrupting the normal computation of a program. We present a library for enriching Haskell programs with assertions. Expected properties can be specified in a parser-combinator like language. The assertions are lazy: they do not force evaluation but only examine what is evaluated by the program. They are also prompt: assertion failure is reported as early as possible. The implementation is based on lazy observations and continuation-based coroutines.

Item Type: Book section
DOI/Identification number: 10.1007/978-3-540-76637-7_4
Uncontrolled keywords: Pattern Logic, Expected Property, Assertion Check, Program Fault, Success Continuation
Subjects: Q Science > QA Mathematics (inc Computing science) > QA 76 Software, computer programming,
Divisions: Divisions > Division of Computing, Engineering and Mathematical Sciences > School of Computing
Depositing User: Olaf Chitil
Date Deposited: 24 Nov 2008 18:04 UTC
Last Modified: 16 Feb 2021 12:25 UTC
Resource URI: (The current URI for this page, for reference purposes)
Chitil, Olaf:
  • Depositors only (login required):


Downloads per month over past year