I'm not sure. I think it was mostly a historical artifact. Originally there was only the simplified AST, at some point the AST was augmented with source locations but the simplified tree was not removed for backwards compatability. Some of the library still operated on the old simpler AST such as the pretty printer but now everything is ported over.
Matt
On Wed, Jul 20, 2016 at 02:09:13PM +0100, Matthew Pickering wrote:
> HSE provides two ASTs, one which has source locations and one which
> doesn't. I have removed the one which doesn't.
I haven't been following very closely, but can I ask what the use case was
for the one which did not have source locations? Is it just to avoid
filling in/ignoring a dummy () parameter when constructing/destructing
respectively?
_______________________________________________
Haskell-Cafe mailing list
To (un)subscribe, modify options or view archives go to:
http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
Only members subscribed via the mailman list are allowed to post.