Skip to content
0:00 / 0:00

#compilerplugins#ghc#functionallogicprogramming

[PADL'23] Embedding Functional Logic Programming in Haskell via a Compiler Plugin

ACM SIGPLAN

11K subscribers • 61 videos on Hallway

YouTube
  • Recommended by 2 people: 1 on Lobsters and 1 in engineering communities.
  • Presented by Kai-Oliver Prott, Finn Teegen, and Jan Christiansen

Advanced. Deep dive for people who know the field.

509 views3 years ago2 recommendations

Programming languagesHaskellCompilers and interpretersFunctional programming

The authors present a technique to embed a functional logic language in Haskell using a GHC compiler plugin and monadic lifting.

[PADL'23] Embedding Functional Logic Programming in Haskell via a Compiler Plugin Kai-Oliver Prott, Finn Teegen, Jan Christiansen We present a technique to embed a functional logic language in Haskell using a GHC plugin. Our approach is based on a monadic lifting that models the functional logic semantics explicitly. Using a GHC plugin, we get many language extensions that GHC provides for free in the embedded language. As a result, we obtain a seamless embedding of a functional logic language, without having to implement a full compiler. We briefly show that our approach can be used to embed other domain-specific languages as well. Furthermore, we can use such a plugin to built a full blown compiler for our language.

Why it's here

2 people recommend this

What people say. Recommended for those interested in logic programming and extending Haskell's type system via compiler plugins.

u/GunpowderGuyin r/haskell • Recommends

On “Logic programming with extensible types in Haskell”

Relatedly : [video

aarroyocon Lobsters • Recommends

Embedding Functional Logic Programming in Haskell via a Compiler Plugin