typedKanren: Statically Typed Relational Programming with Exhaustive Matching in Haskell
<|reference_start|>typedKanren: Statically Typed Relational Programming with Exhaustive Matching in Haskell: We present a statically typed embedding of relational programming (specifically a dialect of miniKanren with disequality constraints) in Haskell. Apart from handling types, our dialect extends standard relational combinator repertoire with a variation of relational matching that supports static exhaustiveness checks. To hide the boilerplate definitions and support comfortable logic programming with user-defined data types we use generic programming via GHC.Generics as well as metaprogramming via Template Haskell. We demonstrate our dialect on several examples and compare its performance against some other known implementations of miniKanren.<|reference_end|>
@article{kudasov2024typedkanren:,
    title={typedKanren: Statically Typed Relational Programming with Exhaustive
  Matching in Haskell},
    author={Nikolai Kudasov and Artem Starikov},
    journal={arXiv preprint arXiv:2408.03170},
    year={2024},
    archivePrefix={arXiv},
    eprint={2408.03170},
    primaryClass={cs.PL}
}