We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Changes:
info
warning
print
Based on the Discord discussion:
E.tracef ?loc "when@ loading@ module@ %s" name @@ fun () -> ... ;; E.printf ~code:`GalaxyNumber ?loc "number@ %i@ is@ too@ large" very_small_number ;; E.fatalf ~code:`TypeError ?loc "%a@ does@ not@ have@ type@ %a" pp_tm tm pp_ty ty ;; E.printf ~code:`EmojiError ?loc ~marks:all_occurrences "emoji@ %a@ is@ used@ more@ than@ %i@ times." pp_emoji emoji threshold ;; E.messagef ~code:`TypeError ?loc "%s@ has@ type@ type@ %a,@ but@ we@ expected@ it@ to@ have@ type@ %a." var pp_tp actual pp_tp expected |> E.mark [binding_loc1; binding_loc2] |> E.fatal ;; E.messagef ?loc ~code:`ChiError "variable@ name@ %s@ does@ not@ have@ any@ emojis." var |> E.fatal ~marks:[] ;; E.printf ?loc ~code:`ChiInfo "raise@ %s@ here." "CCHM"
In sum, we should have these functions
tracef
messagef
mark
fatal(f)
print(f)
?marks
-f
?loc
E.mark
The text was updated successfully, but these errors were encountered:
causes
Further notes on location inheritance: no inheritance except for the LSP protocol.
Sorry, something went wrong.
Note: we need to decide what location (or none) to use when loc is omitted.
loc
Successfully merging a pull request may close this issue.
Changes:
info
andwarning
intoprint
Based on the Discord discussion:
In sum, we should have these functions
tracef
to construct a backtracemessagef
to construct a messagemark
to add, well, marksfatal(f)
andprint(f)
to log something, and all four variants can take?marks
fatal(f)
intends to end the program after printing out the message.-f
functions always take?loc
.?marks
and/or calls ofE.mark
).The text was updated successfully, but these errors were encountered: