erlang-typer(1)
β¨ erlang-typer(1) β¨
okay so this is a User Commands manual page, and it's all about erlang-typer β bestie, come sit with me π
πΈ NAME πΈ
erlang-typer β Typer, a Type annotator for Erlang programs. it literally does what it says on the tin, no cap π
π¦ DESCRIPTION π¦
TypEr shows type information for Erlang modules to the user. that's the main character move right there π
And on top of that? it can also annotate the code of files with such type information. so it doesn't just read the vibes, it writes them down too β¨
π USING TYPER FROM THE COMMAND LINE π
TypEr is used from the command-line, periodt. This section provides a brief description of the options. And the same information can be obtained by writing the following in a shell:
erlang-typer --help
π Usage: π
erlang-typer [--help] [--version] [--plt PLT] [--edoc]
[--show | --show-exported | --annotate | --annotate-inc-files | --annotate-in-place]
[-Ddefine]* [-I include_dir]* [-pa dir]* [-pz dir]*
[-T application]* file* [-r directory*]
Note: * denotes that multiple occurrences of the option are possible. like, go off, stack 'em up π
β Options: β
-rβ Search directories recursively for.erlfiles below them. If a list of files is given, this must be after them. (so,-rgoes last, bestie, don't fight the order π)--showβ Print type specifications for all functions on stdout. (This is the default behaviour; this option is not really needed. it's giving decorative, honestly π)--show-exported(orshow_exported) β Same as--show, but print specifications for exported functions only. Specs are displayed sorted alphabetically on the function's name. so organized, so iconic πΈ--annotateβ Annotate the specified files with type specifications. it's out here editing your files for you, a real one π«Ά--annotate-inc-filesβ Same as--annotatebut annotates all-include()files as well as all.erlfiles. (Use this option with caution β it has not been tested much). ma'am, this one is lowkey unhinged, tread carefully π--annotate-in-placeβ Annotate directly on the source code files, instead of dumping the annotated files in a different directory (use this option with caution β has not been tested much). yes it edits your actual source files in place. yes that is scary. yes they said use caution π--edocβ Print type information as Edoc@speccomments, not as type specs. aesthetic choice, respect it β¨--pltβ Use the specified dialyzer PLT file rather than the default one. your PLT, your rules π-Tfile β The specified file(s) already contain type specifications and these are to be trusted in order to print specs for the rest of the files. (Multiple files or dirs, separated by spaces, can be specified.) these are the certified sources, the ones we believe in fr fr π-Dname(or-Dname=value) β Pass the defined name(s) to TypEr. (**)-Iβ Pass the include_dir to TypEr. (**)-padir β Include dir in the path for Erlang. This is useful when analyzing files that have-include_lib()directives or use parse transforms. very useful, very slay π₯-pzdir β Include dir in the path for Erlang. This is useful when analyzing files that have-include_lib()directives or use parse transforms. (yes, same description as-paβ they're twins, i don't make the rules π )--version(or-v) β Print the TypEr version and some more information and exit. a little "hi, here's who i am" and then it dips π
Note:**options-Dand-Iwork both from the command line and in the TypEr GUI; the syntax of defines and includes is the same as that used byerlc(1). iykyk π§
and that's the whole page, bestie, no notes π
this lil masterpiece comes to you from Ericsson AB, and it's part of dialyzer 5.1.3.1 β so when you're out here annotating types and living your best life, just remember who made it possible. mwah πβ¨
π¦ where this page comes from
- fedora 43: erlang-dialyzer 26.2.5.15-1.fc43 Β· Apache-2.0
- fedora 43: erlang-dialyzer 26.2.5.21-8.fc43 Β· Apache-2.0
- fedora 44: erlang-dialyzer 26.2.5.18-1.fc44 Β· Apache-2.0
- fedora 44: erlang-dialyzer 26.2.5.21-8.fc44 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms