Allow $x, as well as $(x), at top level in TH
authorsimonpj@microsoft.com <unknown>
Fri, 14 Apr 2006 12:19:07 +0000 (12:19 +0000)
committersimonpj@microsoft.com <unknown>
Fri, 14 Apr 2006 12:19:07 +0000 (12:19 +0000)
commit6b2cf62bbab9beaff3c1996ef370ed04c9a8cd49
tree11709f2483d8e6c5dce9963dcfe446a5176c54e3
parentf7f06be1f47dcb3a48c4bc7ef0a2c59e49e28115
Allow $x, as well as $(x), at top level in TH

Bulat pointed out that in Template Haskell
   $x
is allowed instead of
   $(x)
in expressions, but not at the top level of modules.

This commit fixes the omission.  Now you can say

f x = x
  $h
data T = T

and the $h will run Template Haskell just as you'd expect.
compiler/parser/Parser.y.pp