Expressing Church Pairs with Types (jonmsterling.com)

1 points by jonsterling ↗ HN
It’s easy to express pairs in the untyped lambda calculus; adding types makes it somewhat more complex to get a correct encoding. In this article, I explain how we can build a pair with typesafe accessors in a polymorphically typed lambda calculus with type operators (System Fω), and demonstrate it in Haskell.

0 comments

[ 4.8 ms ] story [ 7.1 ms ] thread

No comments yet.