---
id: kw-module
name: module
category: structure
kind: keyword
tokens: module
sig: module name [in layer L] [uses a, b]
tip: Names the module a directory's files belong to; only what it exports is reachable from outside.
order: 51
---
module opens a directory's barrel (index.ludic) and says which module every file under it belongs to. A name a module does not export is private to it: another module that names it is refused at compile time, which is what makes a private name safe to change. The line may place the module in a layer (in layer L) and say what it may reach (uses).
```ludic
# doc-check: skip — a module spans files
# bank/index.ludic
module bank uses base
import "ledger.ludic"
```