کد مقاله کد نشریه سال انتشار مقاله انگلیسی نسخه تمام متن
423056 685168 2006 18 صفحه PDF دانلود رایگان
عنوان انگلیسی مقاله ISI
Arrows, like Monads, are Monoids
موضوعات مرتبط
مهندسی و علوم پایه مهندسی کامپیوتر نظریه محاسباتی و ریاضیات
پیش نمایش صفحه اول مقاله
Arrows, like Monads, are Monoids
چکیده انگلیسی

Monads are by now well-established as programming construct in functional languages. Recently, the notion of “Arrow” was introduced by Hughes as an extension, not with one, but with two type parameters. At first, these Arrows may look somewhat arbitrary. Here we show that they are categorically fairly civilised, by showing that they correspond to monoids in suitable subcategories of bifunctors Cop×C→C. This shows that, at a suitable level of abstraction, arrows are like monads — which are monoids in categories of functors C→C.Freyd categories have been introduced by Power and Robinson to model computational effects, well before Hughes' Arrows appeared. It is often claimed (informally) that Arrows are simply Freyd categories. We shall make this claim precise by showing how monoids in categories of bifunctors exactly correspond to Freyd categories.

ناشر
Database: Elsevier - ScienceDirect (ساینس دایرکت)
Journal: Electronic Notes in Theoretical Computer Science - Volume 158, 5 May 2006, Pages 219-236