Skip to content

Instantly share code, notes, and snippets.

@Kakadu
Last active November 12, 2021 13:56
Show Gist options
  • Save Kakadu/de73d0993699263cb48c9b45a225774e to your computer and use it in GitHub Desktop.
Save Kakadu/de73d0993699263cb48c9b45a225774e to your computer and use it in GitHub Desktop.
alerts demo not working properly
➜ /tmp cat a.ml 4.12.1+flambda
[@@@alert unsafe "This module is unsafe!"]
let is_interesting_var _ _ =
(assert false [@alert not_implemented "1asdf"])
[@@deprecated "Please do something else"]
[@@@ocaml.alert deprecated "Please do something else"]
➜ /tmp ocamlc -c a.ml -alert +not_implemented -alert +deprecated -w +3 4.12.1+flambda
➜ /tmp ocamlc -alert +not_implemented -alert +deprecated -w +3 -c a.ml 4.12.1+flambda
➜ /tmp ocamlc -alert +not_implemented -alert +deprecated -alert +unsafe -w +3 -c a.ml 4.12.1+flambda
➜ /tmp ocamlc --version 4.12.1+flambda
4.12.1
➜ /tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment