package org.simantics.scl.compiler.internal.deriving; import org.simantics.scl.compiler.types.TCon; import org.simantics.scl.compiler.types.Types; import gnu.trove.map.hash.THashMap; public class InstanceDerivers { private static final THashMap MAP = new THashMap(); static { MAP.put(Types.IO, new IODeriver()); MAP.put(Types.ORD, new OrdDeriver()); MAP.put(Types.SHOW, new ShowDeriver()); } public static InstanceDeriver get(TCon typeClass) { return MAP.get(typeClass); } }