Is combining StaticPointers and TemplateHaskell safe?