aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-01-23 08:33:45 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-01-23 19:26:39 -0800
commitfe337b07f7c0a15ac792275ed8fb88d3fa5247a3 (patch)
tree8c1e4c9f0bcfbfee777f5a36bfd7f9401a72d955 /src/Text
parentdaeb52d4e0f21b0e1ad8c3ce17ee9f18a6394f63 (diff)
downloadpandoc-fe337b07f7c0a15ac792275ed8fb88d3fa5247a3.tar.gz
Use hsb2hs preprocessor instead of TH for embed_data_files.
This should work on Windows, unlike the TH solution with file-embed.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Data.hsb (renamed from src/Text/Pandoc/Data.hs)6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Data.hs b/src/Text/Pandoc/Data.hsb
index 441fa5913..28e7f5112 100644
--- a/src/Text/Pandoc/Data.hs
+++ b/src/Text/Pandoc/Data.hsb
@@ -1,7 +1,7 @@
-{-# LANGUAGE TemplateHaskell #-}
+{-# LANGUAGE OverloadedStrings #-}
+-- to be processed using hsb2hs
module Text.Pandoc.Data (dataFiles) where
-import Data.FileEmbed
import qualified Data.ByteString as B
dataFiles :: [(FilePath, B.ByteString)]
-dataFiles = $(embedDir "data")
+dataFiles = %blobs "data"