Adds samples for the clean programming language

This commit is contained in:
Joshua Moerman
2014-10-05 12:55:00 +02:00
parent 5010f32421
commit bec0052065
9 changed files with 304 additions and 0 deletions

9
samples/Clean/GenMap.dcl Normal file
View File

@@ -0,0 +1,9 @@
definition module GenMap
import StdGeneric
generic gMap a b :: .a -> .b
derive gMap c, UNIT, PAIR, EITHER, CONS, FIELD, OBJECT, {}, {!}
derive gMap [], (,), (,,), (,,,), (,,,,), (,,,,,), (,,,,,,), (,,,,,,,)