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.
Author information
Authors and Affiliations
Editor information
Rights 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