1 package org.simantics.scl.compiler.internal.deriving;
3 import org.simantics.scl.compiler.types.TCon;
4 import org.simantics.scl.compiler.types.Types;
6 import gnu.trove.map.hash.THashMap;
8 public class InstanceDerivers {
9 private static final THashMap<TCon, InstanceDeriver> MAP =
10 new THashMap<TCon, InstanceDeriver>();
13 MAP.put(Types.IO, new IODeriver());
14 MAP.put(Types.ORD, new OrdDeriver());
15 MAP.put(Types.SHOW, new ShowDeriver());
18 public static InstanceDeriver get(TCon typeClass) {
19 return MAP.get(typeClass);