Hacker News new | ask | show | jobs
by syrak 400 days ago
You need very little to make a Prolog-like language Turing-complete (lists and recursive predicates). And so Haskell's type system only needs one (or two) extensions to be Turing-complete, `UndecidableInstances` (and maybe `FlexibleInstances` or `MultiParamTypeClasses`). It is no accident. The name "undecidable" shows that the authors of that extension were well aware that it enables Turing-completeness.
1 comments

Exactly—Haskell’s type checker can be made Turing-complete, but that won’t make it much like Prolog.