Skip to main content
    • Aa
    • Aa
  • Get access
    Check if you have access via personal or institutional login
  • Cited by 4
  • Cited by
    This article has been cited by the following publications. This list is generated based on data provided by CrossRef.

    Goncharov, Sergey and Schroder, Lutz 2011. 2011 IEEE 26th Annual Symposium on Logic in Computer Science. p. 227.

    Sabry, Amr 2009. Wiley Encyclopedia of Computer Science and Engineering.

    Kiselyov, Oleg and Shan, Chung-chieh 2007. Lightweight Static Capabilities. Electronic Notes in Theoretical Computer Science, Vol. 174, Issue. 7, p. 79.

    Ferrari, G. Moggi, E. and Pugliese, R. 2001. Global Types and Network Services. Electronic Notes in Theoretical Computer Science, Vol. 54, p. 35.


Monadic encapsulation of effects: a revised approach (extended version)

  • E. MOGGI (a1) and AMR SABRY (a2)
  • DOI:
  • Published online: 01 November 2001

Launchbury and Peyton Jones came up with an ingenious idea for embedding regions of imperative programming in a pure functional language like Haskell. The key idea was based on a simple modification of Hindley-Milner's type system. Our first contribution is to propose a more natural encapsulation construct exploiting higher-order kinds, which achieves the same encapsulation effect, but avoids the ad hoc type parameter of the original proposal. The second contribution is a type safety result for encapsulation of strict state using both the original encapsulation construct and the newly introduced one. We establish this result in a more expressive context than the original proposal, namely in the context of the higher-order lambda-calculus. The third contribution is a type safety result for encapsulation of lazy state in the higher-order lambda-calculus. This result resolves an outstanding open problem on which previous proof attempts failed. In all cases, we formalize the intended implementations as simple big-step operational semantics on untyped terms, which capture interesting implementation details not captured by the reduction semantics proposed previously.

Recommend this journal

Email your librarian or administrator to recommend adding this journal to your organisation's collection.

Journal of Functional Programming
  • ISSN: 0956-7968
  • EISSN: 1469-7653
  • URL: /core/journals/journal-of-functional-programming
Please enter your name
Please enter a valid email address
Who would you like to send this to? *