on master help sign in
Tidy output of :makelemma
db88c3eEdwin Brady
CHANGELOG+2
@@ -20,6 +20,8 @@ New in 0.9.13:
20* Totality errors are now treated as warnings until code generation time, when they become
20* Totality errors are now treated as warnings until code generation time, when they become
21 errors again. This allows users to use the interactive editing features to fix totality
21 errors again. This allows users to use the interactive editing features to fix totality
22 issues, but no programs that violate the stated assumptions will actually run.
22 issues, but no programs that violate the stated assumptions will actually run.
23+* Added :makelemma command, which adds a new top level definition to solve
24+ a metavariable.
23
25
24Internal changes
26Internal changes
25
27
src/Idris/Interactive.hs+1−1
@@ -240,7 +240,7 @@ makeLemma h fn updatefile l n
240
240
241 appArgs (Bind n@(UN c) (Pi _) sc)
241 appArgs (Bind n@(UN c) (Pi _) sc)
242 | thead c /= '_' = " " ++ show n ++ appArgs sc
242 | thead c /= '_' = " " ++ show n ++ appArgs sc
243− appArgs (Bind _ (Pi _) sc) = " " ++ appArgs sc
243+ appArgs (Bind _ (Pi _) sc) = appArgs sc
244 appArgs _ = ""
244 appArgs _ = ""
245
245
246 stripMNBind (PPi b n@(UN c) ty sc)
246 stripMNBind (PPi b n@(UN c) ty sc)