Remote GHCi, -fexternal-interpreter
[ghc.git] / testsuite / tests / th / TH_finalizer.hs
1 {-# LANGUAGE TemplateHaskell #-}
2
3 module ShouldCompile where
4
5 import Language.Haskell.TH
6 import Language.Haskell.TH.Syntax
7
8 $( do
9 addModFinalizer (do b <- getQ; reportWarning (show (b::Maybe Bool)))
10 return [] )
11 $( putQ True >> return [] )