Type Generic Observing

Conference paper

DOI: 10.1007/978-3-319-14675-1_6

Part of the Lecture Notes in Computer Science book series (LNCS, volume 8843)
Cite this paper as:
Faddegon M., Chitil O. (2015) Type Generic Observing. In: Hage J., McCarthy J. (eds) Trends in Functional Programming. TFP 2014. Lecture Notes in Computer Science, vol 8843. Springer, Cham


Observing intermediate values helps to understand what is going on when your program runs. Gill presented an observation method for lazy functional languages that preserves the program’s semantics. However, users need to define for each type how its values are observed: a laborious task and strictness of the program can easily be affected. Here we define how any value can be observed based on the structure of its type by applying generic programming frameworks. Furthermore we present an extension to specify per observation point how much to observe of a value. We discuss especially functional values and behaviour based on class membership in generic programming frameworks.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Copyright information

© Springer International Publishing Switzerland 2015

Authors and Affiliations

  1. 1.University of KentCanterburyUK

Personalised recommendations