X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=mTaskCode.dcl;h=91c70382e6b231b1a7fa56a4886ce91264a755ad;hb=8246c6551faa818be7a58638dbbc2e521f21c454;hp=8e5f0f58ab6e8088a29b2a82f31fb7ea0c53ff23;hpb=e25fda18ca554ec3fe937152403872b916367ddb;p=mTask.git diff --git a/mTaskCode.dcl b/mTaskCode.dcl index 8e5f0f5..91c7038 100644 --- a/mTaskCode.dcl +++ b/mTaskCode.dcl @@ -2,12 +2,11 @@ definition module mTaskCode import mTask +class toCode a :: a -> String instance toCode Pin instance toCode MTask instance toCode () instance toCode Long - -class toCode a :: a -> String instance toCode Bool instance toCode Int instance toCode Real @@ -15,6 +14,7 @@ instance toCode Char instance toCode String instance toCode DigitalPin instance toCode AnalogPin +instance toCode UserLED argType :: (((Code a p)->Code b q)->In ((Code a p)->Code b q) (Code c s)) -> a | type a @@ -99,7 +99,7 @@ instance noOp Code , iloop :: Int , includes :: [String] , def :: Def - , mode :: Mode + , mode` :: Mode , binds :: [String] }