Skip to content

Commit

Permalink
added explicit brackets around type checked exp stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan Gustafsson committed May 21, 2010
1 parent 7308527 commit c6fddb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haskell.hiji.js
Expand Up @@ -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);
Expand Down

0 comments on commit c6fddb5

Please sign in to comment.