WeSearch

Profunctor Equipment in Haskell

·3 min read · 0 reactions · 0 comments · 9 views
#haskell#programming#functors
Profunctor Equipment in Haskell
⚡ TL;DR · AI summary

The article discusses the implementation of profunctor equipment in Haskell. It emphasizes the advantages of using a compiler-verified encoding while acknowledging the limitations of Haskell compared to dependently typed languages. The author provides various definitions and examples related to functors and profunctors, highlighting their applications in Haskell programming.

Key facts
Original article
Bartosz Milewski's Programming Cafe
Read full at Bartosz Milewski's Programming Cafe →
Opening excerpt (first ~120 words) tap to expand

Previously: Profunctor Equipment. To make things more palatable for programmers, I decided to provide a toy implementation of some of the equipments in Haskell. The advantage of this encoding is that it can be verified by the compiler, and I still trust the compiler more than I trust the AI. A more adequate implementation would require a full-blown dependently typed language, but if we restrict ourselves to just a single category and work only with endo-functors and endo-profunctors, we can get at least some intuitions. If you want to see a more elaborate version, see the proarrows library by Sjoerd Visscher. The only 0-cell I’ll be using is the Haskell category of types and functions.

Excerpt limited to ~120 words for fair-use compliance. The full article is at Bartosz Milewski's Programming Cafe.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments