blob: 119fb8d421b659f4062a57179fec4b3d41a4fb13 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE StaticPointers #-}
-- | A test of static forms in TH quotations.
module Main(main) where
import GHC.StaticPtr
main = print $ deRefStaticPtr $([| static g :: StaticPtr String |])
g = "found"
|