Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error in the Idris code excerpt #4

Closed
joom opened this issue Sep 9, 2019 · 1 comment
Closed

Syntax error in the Idris code excerpt #4

joom opened this issue Sep 9, 2019 · 1 comment

Comments

@joom
Copy link

joom commented Sep 9, 2019

In section 5.1.3, in the Idris definition of the mush tactic, there's a syntax error. The code in the paper is this:

mush : Elab ()
mush =
  do attack
    x <- gensym "x"
    intro x
    try intros
    induction (Var x) ‘andThen‘ auto
    solve

This code will not compile in Idris because of the wrong indentation. All lines of the do-notation must align with the first line in the do-notation. It should be:

mush : Elab ()
mush =
  do attack
     x <- gensym "x"
     intro x
     try intros
     induction (Var x) `andThen` auto
     solve

(Also, the code in the paper is using single opening quotes instead of backticks around andThen, which is another problem.)

@tlringer
Copy link
Contributor

tlringer commented Sep 9, 2019

Oops, sorry. I tried to take this feedback into account before submission, but I didn't quite appreciate the amount of whitespace sensitivity, so I misinterpreted you. I will add this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants