mboes / haskell-src-exts-qq

A quasiquoter for haskell-src-exts.
Other
9 stars 7 forks source link

top-level declaration quoter broken? #12

Open osa1 opened 9 years ago

osa1 commented 9 years ago

It always fails:

> runQ (quoteDec dec "blah = 1")
*** Exception: Unimplemented.
> runQ (quoteDec dec "blah :: Int")
*** Exception: Unimplemented.
> runQ (quoteDec dec "blah = 1")
*** Exception: Unimplemented.
> runQ (quoteDec dec "id i = i")
*** Exception: Unimplemented.

Any ideas?

osa1 commented 9 years ago

Apparently it's just left as error: https://github.com/mboes/haskell-src-exts-qq/blob/master/Language/Haskell/Exts/QQ.hs#L113

I'm not sure why dec is exported though. It might be left as a TODO. I'll try to implement this but I'm not familiar with haskell-src-exts API...