happy: Happy is a parser generator for Haskell

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.



Happy is a parser generator for Haskell. Given a grammar specification in BNF, Happy generates Haskell code to parse the grammar. Happy works in a similar way to the yacc tool for C.

[Skip to ReadMe]


Versions1.16, 1.17, 1.18, 1.18.1, 1.18.2, 1.18.4, 1.18.5, 1.18.6, 1.18.7, 1.18.8, 1.18.9, 1.18.10, 1.18.11, 1.19.0, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.19.5, 1.19.6, 1.19.7, 1.19.8, 1.19.9, 1.19.9
Change logCHANGES
Dependenciesarray, base (<5), containers (>=0.4.2), mtl (>=2.2.1) [details]
Copyright(c) Andy Gill, Simon Marlow
AuthorAndy Gill and Simon Marlow
MaintainerSimon Marlow <marlowsd@gmail.com>
Home pagehttps://www.haskell.org/happy/
Bug trackerhttps://github.com/simonmar/happy/issues
Source repositoryhead: git clone https://github.com/simonmar/happy.git
UploadedSun Feb 4 16:17:54 UTC 2018 by SimonMarlow



Deprecated. Does nothing.


Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info


Maintainers' corner

For package maintainers and hackage trustees

Readme for happy-1.19.9

[back to package description]


Happy is a parser generator for Haskell 98 (and later).

Build Status

Happy is built using Cabal. First install GHC, then:

  $ cabal configure
  $ cabal build
  $ cabal install

Complete documentation can be found in the directory 'doc', in DocBook XML format. To format the documentation, the DocBook-Tools suite (see http://wiki.docbook.org/DocBookTools) provides all the bits & pieces you need. Alternatively, pre-formatted documentation is available from Happy's homepage (URL above).

The directory 'examples' contains some example parsers that use Happy.

For information on copying and distributing this program, see the file LICENSE in this directory.

Bugs should be reported at: https://github.com/simonmar/happy/issues

Happy Parsing!