Add missing source file to typeclasses-are-logic post
This commit is contained in:
parent
b492c2d0fb
commit
846d85bb7a
7
code/typeclass-prolog/kb.pl
Normal file
7
code/typeclass-prolog/kb.pl
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
show(unit).
|
||||||
|
show(list(X)) :- show(X).
|
||||||
|
show(pair(X,Y)) :- show(X), show(Y).
|
||||||
|
|
||||||
|
eq(X) :- ord(X).
|
||||||
|
eq(nat).
|
||||||
|
ord(nat).
|
Loading…
Reference in New Issue
Block a user