[Haskell-cafe] Parse Error ( Parsec )

Hilco Wijbenga hilco.wijbenga at gmail.com
Sat Jan 11 19:42:15 UTC 2014


On 11 January 2014 11:12, mukesh tiwari <mukeshtiwari.iiitm at gmail.com> wrote:
> table = [  [ Prefix ( Not <$ string  "~"  ) ]
>          , [ Infix  ( And <$ string  "&"  ) AssocLeft ]
>          , [ Infix  ( Or  <$ string "|"   ) AssocLeft ]
>          , [  Infix  ( Imp <$ string "=>"  ) AssocLeft
>             , Infix  (  Red <$ string "<=" ) AssocLeft
>             , Infix  ( Eqi <$ string "<=>" ) AssocLeft

Have you tried changing the order here? I would expect the "<=>" check
to have to come before the "<=" check? I haven't played with this so
I'm just guessing.


More information about the Haskell-Cafe mailing list