[Haskell-cafe] Haskell syntax inside QuasiQuote

Matt Morrow mjm2002 at gmail.com
Tue Oct 28 03:28:32 EDT 2008

Ooh, interesting. I'm going to look into this..

On 10/28/08, Reiner Pope <reiner.pope at gmail.com> wrote:
> Unfortunately, I've uncovered a problem in the parser. For instance,
> with your module, [$hs|1+1*2|] evaluates to 4 rather than 3. This
> seems to be a general problem with infix operators, which I believe
> arises since haskell-src-exts isn't given the fixity declarations for
> + and *, so it doesn't know to bind (*) tighter than (+). I don't see
> how this problem can even be resolved without modifying Template
> Haskell: given that the operators reside in user code, there is no way
> to find their fixity.

More information about the Haskell-Cafe mailing list