idris-mode icon indicating copy to clipboard operation
idris-mode copied to clipboard

Update `idris-make-lemma` to insert lemma above doc string of current function.

Open keram opened this issue 1 year ago • 0 comments

Why: Previously if function had a doc string the lemma was inserted before signature but after the doc string requiring user to further adjust the position.

Before:

||| Useful doc for foo
foo_rhs : String -> String

foo : String -> String
foo str = foo_rhs str

After:

foo_rhs : String -> String

||| Useful doc for foo
foo : String -> String
foo str = foo_rhs str

keram avatar Jul 17 '24 14:07 keram