Re:Automated reasoning in F#, Scala, Haskell, C++, and Julia
by tikhonj on Monday August 03, 2015 @02:17PM
(#9998482)
This feels like something you could do with GADTs in Haskell and OCaml. Here's your example rendered with GADTs:
You could also use True and False instead of Add and IsAdd, or even type-level string literals as arbitrary symbols:
[ Parent
| on HN ]
There are no comments on this comment yet.