Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function language(json) {
var language$1 = Json_decode.string(json);
switch (language$1) {
case "js" :
return /* JS */16585;
case "ml" :
return /* ML */17247;
case "re" :
return /* RE */18355;
default:
throw [
Json_decode.DecodeError,
"Unknown language: " + (String(language$1) + "")
];
}
}