Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added explicit brackets around type checked exp stuff

  • Loading branch information...
commit c6fddb5445a89b154297056ce679eb885efc52e0 1 parent 7308527
Johan Gustafsson authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  haskell.hiji.js
View
2  haskell.hiji.js
@@ -249,7 +249,7 @@ commands[":type"] = "TYPE";
$("ol").append(makeInput(modules));
} else if (commands[command] == "TYPE") {
var arg = trim(input.substr(command.length));
- var ast = haskell.parser.parse(arg).ast;
+ var ast = haskell.parser.parse("{" + arg + "}").ast;
var type = ast.infer(/* some env */);
var newLine = ast.stringify() + " :: " + type.stringify();
$('.input').after(output).replaceWith(newLine);
Please sign in to comment.
Something went wrong with that request. Please try again.