mirror of
https://github.com/GaloisInc/cryptol.git
synced 2024-09-11 22:17:18 +03:00
Clarify that each file can only contain a single module
This commit is contained in:
parent
ea5508a638
commit
a87684aad4
BIN
docs/Cryptol.pdf
BIN
docs/Cryptol.pdf
Binary file not shown.
Binary file not shown.
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user