From Eager PFL to Lazy Haskell
Ján Kollár ; Jaroslav Porubän ; Peter Václavík
Computing and Informatics, Tome 28 (2012) no. 1, / Harvested from Computing and Informatics
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.
Publié le : 2012-01-26
Classification:  Process functional language; imperative functional programming; lazy state evaluation
@article{cai333,
     author = {J\'an Koll\'ar and Jaroslav Porub\"an and Peter V\'aclav\'\i k},
     title = {From Eager PFL to Lazy Haskell},
     journal = {Computing and Informatics},
     volume = {28},
     number = {1},
     year = {2012},
     language = {en},
     url = {http://dml.mathdoc.fr/item/cai333}
}
Ján Kollár; Jaroslav Porubän; Peter Václavík. From Eager PFL to Lazy Haskell. Computing and Informatics, Tome 28 (2012) no. 1, . http://gdmltest.u-ga.fr/item/cai333/