File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed
src/Reflection/TypeChecking Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ Other major changes
35
35
Other minor additions
36
36
---------------------
37
37
38
+ * Added ` Reflection.TypeChecking.Format.errorPartFmt ` .
39
+
38
40
* Added new records to ` Algebra.Bundles ` :
39
41
``` agda
40
42
RawNearSemiring c ℓ : Set (suc (c ⊔ ℓ))
Original file line number Diff line number Diff line change @@ -79,3 +79,7 @@ typeErrorFmt fmt = mapPrintf (lexer fmt) (typeError ∘ concat) (printf fmt)
79
79
80
80
debugPrintFmt : String → ℕ → (fmt : String) → Printf (lexer fmt) (TC ⊤)
81
81
debugPrintFmt tag lvl fmt = mapPrintf (lexer fmt) (debugPrint tag lvl ∘ concat) (printf fmt)
82
+
83
+ -- Combine with "%e" format for nested format calls.
84
+ errorPartFmt : (fmt : String) → Printf (lexer fmt) (List ErrorPart)
85
+ errorPartFmt fmt = mapPrintf (lexer fmt) concat (printf fmt)
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ open Builtin public
33
33
renaming (returnTC to return)
34
34
35
35
open Format public
36
- using (typeErrorFmt; debugPrintFmt)
36
+ using (typeErrorFmt; debugPrintFmt; errorPartFmt )
37
37
38
38
------------------------------------------------------------------------
39
39
-- Utility functions
You can’t perform that action at this time.
0 commit comments