Skip to content
  • Simon Peyton Jones's avatar
    Allow $x, as well as $(x), at top level in TH · 6b2cf62b
    Simon Peyton Jones 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