]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/internal/deriving/InstanceDerivers.java
Automatic deriving of instances for Json
[simantics/platform.git] / bundles / org.simantics.scl.compiler / src / org / simantics / scl / compiler / internal / deriving / InstanceDerivers.java
index b450766a6a5893c62b864381e25212c88be7dac3..43f9b3385e7deebf816778d44feb16597d628cd1 100644 (file)
@@ -1,5 +1,6 @@
 package org.simantics.scl.compiler.internal.deriving;
 
+import org.simantics.scl.compiler.common.names.Names;
 import org.simantics.scl.compiler.types.TCon;
 import org.simantics.scl.compiler.types.Types;
 
@@ -13,6 +14,7 @@ public class InstanceDerivers {
         MAP.put(Types.IO, new IODeriver());
         MAP.put(Types.ORD, new OrdDeriver());
         MAP.put(Types.SHOW, new ShowDeriver());
+        MAP.put(Names.Json_Json, new JsonDeriver());
     }
     
     public static InstanceDeriver get(TCon typeClass) {