blob: 24d663108355513bd1c942a96983831b3304efe8 (
plain) (
tree)
|
|
{-# LANGUAGE TemplateHaskell #-}
module FooTH (embedFile) where
import Language.Haskell.TH
import Language.Haskell.TH.Syntax
embedFile :: FilePath -> Q Exp
embedFile path = do
str <- runIO (readFile path)
addDependentFile path
[| str |]
|