1997 · 28 citations · 15 references
ComputingComputer ScienceAlgebraFormal MethodsProgramming LanguagesData TypesFormal SemanticsModel TheoryPredicate LogicType CheckingType SystemsDatatypes TheoryLinear Type SystemsLinear TypesMonadic SemanticsMonadsOperational SemanticsStructural Operational SemanticsType Theory
A methodology is described whereby a linear ADT may be rigorously encapsulated within a state monad. A CPS-like translation from the original ADT axioms into monadic ones is also described and proven correct, so that reasoning can be accomplished at the monadic level without exposing the state. The ADT axioms are suitably constrained by a linear type system to make this translation possible. This constraint also allows the state to be "updated in place," a notion made precise via a graph-rewrite operational semantics. 1 Introduction In recent years, numerous proposals for I/O, destructive updates to data structures, mutable variables, nondeterminism, and concurrency have been put forth, all using monads to structure programs in such a way that details of the computation are effectively hidden and encapsulated [18, 20]. One of the most important uses of monads is in dealing with state, resulting in a style of programming referred to appropriately by Peyton Jones and Wadler as imperativ...
15
Imperative functional programming
Simon Jones, Philip Wadler · 1993 · 1.2K citations · Full text
Report on the programming language Haskell
Paul Hudak, Simon Peyton Jones, Philip Wadler et al. · ACM SIGPLAN Notices · 1992 · 1K citations · Full text
Computational lambda-calculus and monads
Eugenio Moggi · 2003 · 858 citations
Computing, Computer Science, Algebra +13
The essence of functional programming
Philip Wadler · 1992 · 676 citations · Full text
Philip Wadler · 1990 · 575 citations · Full text