[Haskell-cafe] Why GHC is written in Happy and not a monadic parser library?

Brandon Allbery allbery.b at gmail.com
Sat Aug 3 03:10:29 CEST 2013


On Fri, Aug 2, 2013 at 8:49 PM, blackbox.dev.ml
<blackbox.dev.ml at gmail.com>wrote:

> Is there any specific reason why GHC is written in a parser GENERATOR
> (Happy) and not in MONADIC PARSER COMBINATOR (like parsec)?
>
> Is Happy faster / handles better errors / hase some great features or
> anything else?
>

Most probably because GHC predates practical parser combinators. Happy is
just a yacc clone, really; ancient tech. And I would suspect that replacing
the parser at this point could get pretty painful.

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20130802/7f743a7a/attachment.htm>


More information about the Haskell-Cafe mailing list