Happy User Guide
Prev | Chapter 4. Syntax of Grammar Files | Next

# 4.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 | Home | Next
Syntax of Grammar Files | Up | Directives