Skip to main content

A Pattern Logic for Prompt Lazy Assertions

Chitil, Olaf and Huch, Frank (2007) A Pattern Logic for Prompt Lazy Assertions. In: Horváth, Zoltán and Zsok, Viktoria and Butterfield, Andrew, eds. Implementation and Application of Functional Languages. Lecture Notes in Computer Science . Springer, Berlin, Germany, pp. 126-144. ISBN 978-3-540-74129-9. E-ISBN 978-3-540-74130-5. (doi:10.1007/978-3-540-74130-5) (KAR id:14599)

Language: English
Click to download this file (174kB) Preview
[thumbnail of A_Pattern.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. Here we present a library for enriching programs in the lazy language Haskell with assertions. Expected properties are written in an expressive pattern logic that combines pattern matching with logical operations and predicates. The presented assertions are lazy: they do not force evaluation but only examine what is evaluated by other parts of the program. They are also prompt: assertion failure is reported as early as possible, before a faulty value is used by the main computation.

Item Type: Book section
DOI/Identification number: 10.1007/978-3-540-74130-5
Uncontrolled keywords: Haskell, functional programming
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:05 UTC
Last Modified: 16 Nov 2021 09:53 UTC
Resource URI: (The current URI for this page, for reference purposes)
Chitil, Olaf:
  • Depositors only (login required):

Total unique views for this document in KAR since July 2020. For more details click on the image.