On Sat, Aug 24, 2013 at 11:00 AM, TP <paratribulations@free.fr> wrote:
main = do

$(makeLetStatement "a")
-- print a

Is that the actual indentation you used? Because it's wrong if so, and the error you would get is the one you're reporting. Indentation matters in Haskell.

    In an equation for `main': main = do { $(makeLetStatement "a") }

You cannot *end* a do with a let-statement; it requires something else following it. You have nothing following it, as shown by the above fragment from the error message.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net