News Score: Score the News, Sort the News, Rewrite the Headlines

Overloading the lambda abstraction in Haskell

Dec 10, 2022About two years ago, I started working on a little embedded domain-specific language (EDSL) called achille, using Haskell. Because this EDSL has its own notion of morphisms Recipe m a b from a to b, I was looking for a way to let users write such morphisms using regular Haskell functions and the syntax for lambda abstraction, \x -> .... As recently as 5 days ago, I was still convinced that there was no way to do such a thing without requiring a lot of engineering effort, either throu...

Read more at acatalepsie.fr

© News Score  score the news, sort the news, rewrite the headlines