Add missing source file to typeclasses-are-logic post
This commit is contained in:
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).
|
||||
Reference in New Issue
Block a user