Title :
Extending haskell with effectful property abstraction
Author :
Boldizs?r N?meth;Zolt?n Kelemen;M?t? Kar?csony;M?t? Tejfel
Author_Institution :
E?tv?s Lor?nd Tudom?nyegyetem
Abstract :
Functional programming paradigm can be used to build high-level software, especially when combined with a strong type system, like in Haskell. Functions are first-order values in functional languages. Haskell´s Lens type generalizes properties (i.e. accessors/mutators) found in other programming languages. However the structure of Lens type prevents using lenses for data that can be accessed with side-effects. Examples of such data are synchronized properties, file content or remote data. This paper presents an alternative data type for property abstraction, called Reference that can be used in these cases.
Keywords :
"Lenses","Context","Data structures","Libraries","Writing","Gettering","Additives"
Conference_Titel :
Scientific Conference on Informatics, 2015 IEEE 13th International
Print_ISBN :
978-1-4673-9867-1
DOI :
10.1109/Informatics.2015.7377830