Clarify that each file can only contain a single module

This commit is contained in:
Brett Boston 2020-06-30 19:10:33 -07:00
parent ea5508a638
commit a87684aad4
5 changed files with 8 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@ -580,6 +580,7 @@ type T a b = [a] b
\section{Modules}\label{modules}}
A \textbf{\emph{module}} is used to group some related definitions.
Each file may contain at most one module.
\begin{verbatim}
module M where

View File

@ -3237,10 +3237,11 @@ Doing this well encourages
code reuse, so it's a generally good thing to do. Cryptol's module
system is simple and easy to use. Here's a quick overview:
A module's name should be the same as the filename the module is
defined in. For example, the \verb+utilities+ module should be
defined in a file called \verb+utilities.cry+. To specify that a file
defines a module, its first non-commented line should be:
A module's name should be the same as the filename the module is defined in,
and each file may contain only a single module. For example, the
\verb+utilities+ module should be defined in a file called
\verb+utilities.cry+. To specify that a file defines a module, its first
non-commented line should be:
\begin{verbatim}
module utilities where

View File

@ -510,7 +510,8 @@ Type Synonym Declarations
Modules
=======
A ***module*** is used to group some related definitions.
A ***module*** is used to group some related definitions. Each file may
contain at most one module.
module M where