[Haskell-cafe] Re: Parsec and network data

Aaron Denney wnoise at ofb.net
Sat Aug 30 16:41:28 EDT 2008

On 2008-08-30, Johannes Waldmann <waldmann at imn.htwk-leipzig.de> wrote:
> apfelmus wrote:
>> Design your language in a way that the *parse* tree does not depend
>> on import statements? I.e. Chasing imports is performed after you've
>> got an abstract syntax tree.
> OK, that would work.
> This property does not hold for Haskell,
> because you need the fixities of the operators
> (so, another language design error :-)

Yes, but you can partially parse into a list, which later gets
completely parsed.  It's not like C with its textual inclusion, and
constructs changing what counts as a type.

Aaron Denney

More information about the Haskell-Cafe mailing list