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.