• simonpj@microsoft.com's avatar
    Allow $x, as well as $(x), at top level in TH · 6b2cf62b
    simonpj@microsoft.com authored
    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.
    6b2cf62b
Parser.y.pp 55.4 KB