6.2. Module Header
Prev | Chapter 6. Syntax of Grammar Files | Next

## 6.2. Module Header

This section is optional, but if included takes the following form:

    {
    <Haskell module header>
    }

The Haskell module header contains the module name, exports, and imports. No other code is allowed in the header—this is because Happy may need to include its own `import` statements directly after the user defined header.

Prev | Up | Next
Chapter 6. Syntax of Grammar Files | Home | 6.3. Directives