Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions src/proper_typeserver.erl
Original file line number Diff line number Diff line change
Expand Up @@ -161,17 +161,19 @@
%%% </li>
%%% </ul>
%%%
%%% The `?TYPE` macro for explicitly taking advantage of PropEr's native type
%%% The `?TYPE' macro for explicitly taking advantage of PropEr's native type
%%% support is subject to the following usage rules:
%%% <ul>
%%% <li>It is allowed in any position to produce a PropEr type, including
%%% outside of `?FORALL`.</li>
%%% <li>The same restriction on allowed recursive native types as in `?FORALL` apply.</li>
%%% <li>There's no risk of confusion between expressions and native types,
%%% inside `?TYPE` everything is interpreted as a native type, and as such
%%% `?TYPE([integer()])` will produce an arbitrary integer list.</li>
%%% <li>It is not checked for correct syntax - using invalid syntax can produce
%%% errors when the property is evaluated, which are hard to understand.</li>
%%% outside of `?FORALL'.</li>
%%% <li>The same restriction on allowed recursive native types as in `?FORALL`
Comment thread
michalmuskala marked this conversation as resolved.
Outdated
%%% apply.</li>
%%% <li>There is no risk of confusion between expressions and native types.
%%% Inside `?TYPE' everything is interpreted as a native type; for example,
%%% `?TYPE([integer()])' will produce an arbitrary integer list.</li>
%%% <li>Its argument is not checked for correct syntax. Using invalid syntax
%%% can result in errors that are hard to understand when the property is
%%% evaluated.</li>
%%% </ul>
%%%
%%% You can use <a href="#index">these</a> functions to try out the type
Expand Down