2011Unpublished venueRequires access

Comonad Theory and its Applications in Functional Programming Language Haskell

Shanshan Yu

Open publisher page 0 citations

Abstract

Monad theory in functional programming language Haskell has some disadvantages in describing the context dependent computations.As the categorical dual notion of monads,comonad theory can effectively improve Haskell's description ability of context-dependent computations.Firstly,we gave the categorical definitions and properties of Comonads,as well as their implementations in Haskell.Secondly,we discussed the CoKleisli triple and CoKleisli category,and used some examples to demonstrate how to apply them into the descriptions and reasoning of context dependent computations.Finally,we also discussed the distributive laws between Comonads and Monads,and showed its uses in merging the effectful computations and context dependent computations.

About this research paper

What this paper is about

Monad theory in functional programming language Haskell has some disadvantages in describing the context dependent computations.As the categorical dual notion of monads,comonad theory can effectively improve Haskell's description ability of context-dependent computations.Firstly,we gave the categorical definitions and properties of Comonads,as well as their implementations in Haskell.Secondly,we discussed the CoKleisli triple and CoKleisli category,and used some examples to demonstrate how to apply them into the descriptions and reasoning of context dependent computations.Finally,we also discussed the distributive laws between Comonads and Monads,and showed its uses in merging the effectful computations and context dependent computations.

Why it matters

A significance statement is not available in the OpenAlex record.

Key contribution

A contribution statement is not available in the OpenAlex record.

Method / approach

Method details are not available in the OpenAlex metadata.

Main findings

Findings are not separately available in the OpenAlex metadata.

Limitations

Limitations are not available in the OpenAlex metadata.

Applications

Application details are not available in the OpenAlex metadata.

Available abstract

Monad theory in functional programming language Haskell has some disadvantages in describing the context dependent computations.As the categorical dual notion of monads,comonad theory can effectively improve Haskell's description ability of context-dependent computations.Firstly,we gave the categorical definitions and properties of Comonads,as well as their implementations in Haskell.Secondly,we discussed the CoKleisli triple and CoKleisli category,and used some examples to demonstrate how to apply them into the descriptions and reasoning of context dependent computations.Finally,we also discussed the distributive laws between Comonads and Monads,and showed its uses in merging the effectful computations and context dependent computations.

Key concepts: Haskell, Monad (category theory), Computer science, Functional programming, Context (archaeology), Computation, Programming language, Distributive property

Related papers

Back to paper searchBrowse research topicsOriginal source
Comonad Theory and its Applications in Functional Programming Language Haskell — Research Paper | ScholarLens