X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=gCons.dcl;h=9733f4a8a8ebd73d3cfab77ba52c64d4aceafaf5;hb=ce48250dbf5d93a0617c7683db9959f2fcacacc6;hp=827c637cfb95fda21c7da1f5a06461e2e2114a34;hpb=f150c433c7a55e25a4f700b7c33b0e9cbdaff81a;p=mTask.git diff --git a/gCons.dcl b/gCons.dcl index 827c637..9733f4a 100644 --- a/gCons.dcl +++ b/gCons.dcl @@ -10,7 +10,10 @@ definition module gCons import StdGeneric generic consName a :: a -> String -derive consName CONS of {gcd_name},UNIT,PAIR,EITHER,OBJECT,RECORD,FIELD,Int,Bool,Char,(->) +derive consName CONS of {gcd_name},UNIT,PAIR,EITHER,OBJECT,RECORD,FIELD,Int,Bool,Char,String,(->) generic consIndex a :: a -> Int -derive consIndex CONS of {gcd_index},UNIT,PAIR,EITHER,OBJECT,Int,Bool,Char +derive consIndex CONS of {gcd_index},UNIT,PAIR,EITHER,OBJECT,Int,Bool,Char,String + +generic conses a :: [a] +derive conses CONS,UNIT,PAIR,EITHER,OBJECT,FIELD,RECORD,Int,Bool,Char,Real,String,(),{},{!},[],[! ],[ !],[!!],(->)