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

'addclause' client command fails to produce a meaningful definition for helpers under 'where' blocks #68

Closed
edwinb opened this issue May 20, 2020 · 0 comments

Comments

@edwinb
Copy link
Collaborator

edwinb commented May 20, 2020

Issue by rgrover
Wednesday Apr 29, 2020 at 23:29 GMT
Originally opened as edwinb/Idris2-boot#341


Steps to Reproduce

Attempting to generate a trivial definition for the go helper function (below) fails to produce meaningful results. The behaviour can also be reproduced by running idris2 from the command line: idris2 GeneratingTrivialDefiniton.idr --client ":ac! 6 go"

module GeneratingTrivialDefiniton

recurse : (n : Nat) -> Nat
recurse n = go n 0
  where
    go : (x : Nat) -> (acc: Nat) -> Nat

Expected Behavior

module GeneratingTrivialDefiniton

recurse : (n : Nat) -> Nat
recurse n = go n 0
  where
    go : (x : Nat) -> (acc: Nat) -> Nat
    go x acc = ?go_rhs

Observed Behavior

module GeneratingTrivialDefiniton

recurse : (n : Nat) -> Nat
recurse n = go n 0
  where
    go : (x : Nat) -> (acc: Nat) -> Nat
    1143:235:go x acc = ?1143:235:go_rhs
@edwinb edwinb closed this as completed in 38ad480 May 23, 2020
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

1 participant