[Haskell-cafe] Re: Parsing Haskell

Simon Marlow marlowsd at gmail.com
Fri Nov 6 11:13:49 EST 2009

On 06/11/2009 15:17, John A. De Goes wrote:
> You need a bottom-up parser to do fragment parsing. I'm not sure one
> exists for Haskell.

In Happy you can define multiple entry points to a grammar, which is how 
GHCi parses statements using the same parser that is used to parse 
complete modules.

You'd have to modify the parser in haskell-src(-exts) to do add the 
entry points, though.


More information about the Haskell-Cafe mailing list