From Eager PFL to Lazy Haskell

Authors

  • Ján Kollár
  • Jaroslav Porubän
  • Peter Václavík

Keywords:

Process functional language, imperative functional programming, lazy state evaluation

Abstract

The state of a system is expressed using PFL, a process functional language, in an easily understandable manner. The paper presents PFL environment variable -- our basic concept for the state manipulation in the process functional language. Then we introduce the style in which stateful systems are described using monads and state transformers in pure lazy functional language Haskell. Finally, we describe our approach to lazy state manipulation in PFL and correspondence between state manipulation in PFL and the one in a pure lazy functional language Haskell. The proposed translation from eager PFL to a lazy Haskell provides an opportunity to exploit laziness for process functional programs and furthermore for imperative programs. The approach described in this paper was used in implemented PFL to Haskell code generator.

Downloads

Download data is not yet available.

Downloads

Published

2012-01-30

How to Cite

Kollár, J., Porubän, J., & Václavík, P. (2012). From Eager PFL to Lazy Haskell. COMPUTING AND INFORMATICS, 25(1), 61–80. Retrieved from https://www.cai.sk/ojs/index.php/cai/article/view/333

Most read articles by the same author(s)