Skip to main content

Generalising monads

  • Conference paper
  • First Online:
Mathematics of Program Construction (MPC 1998)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 1422))

Included in the following conference series:

  • 117 Accesses

Abstract

Phil Wadler's idea of using monads to structure purely functional programs has had a profound effect on the way libraries of combinators are designed in Haskell. By basing the signature of such a library on a monad, the designer gains access to a wide variety of possible implementations, and moreover enables the library to be used in conjunction with generic monadic code.

However, recently some combinator libraries have been designed that are inherently incompatible with the monad signature. Swierstra's library for LL-1 parsing is an interesting example. In this talk we propose another generic library signature, inspired by Kleisli categories, which is more general than the monad signature and can be used in the design of libraries such as Swierstra's that collect static information about computations.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Editor information

Johan Jeuring

Rights and permissions

Reprints and permissions

Copyright information

© 1998 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Hughes, J. (1998). Generalising monads. In: Jeuring, J. (eds) Mathematics of Program Construction. MPC 1998. Lecture Notes in Computer Science, vol 1422. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0054281

Download citation

  • DOI: https://doi.org/10.1007/BFb0054281

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-64591-7

  • Online ISBN: 978-3-540-69345-1

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics