diff options
author | John MacFarlane <fiddlosopher@gmail.com> | 2013-01-23 08:33:45 -0800 |
---|---|---|
committer | John MacFarlane <fiddlosopher@gmail.com> | 2013-01-23 19:26:39 -0800 |
commit | fe337b07f7c0a15ac792275ed8fb88d3fa5247a3 (patch) | |
tree | 8c1e4c9f0bcfbfee777f5a36bfd7f9401a72d955 /src/Text/Pandoc/Data.hsb | |
parent | daeb52d4e0f21b0e1ad8c3ce17ee9f18a6394f63 (diff) |
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/Pandoc/Data.hsb')
-rw-r--r-- | src/Text/Pandoc/Data.hsb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Data.hsb b/src/Text/Pandoc/Data.hsb new file mode 100644 index 000000000..28e7f5112 --- /dev/null +++ b/src/Text/Pandoc/Data.hsb @@ -0,0 +1,7 @@ +{-# LANGUAGE OverloadedStrings #-} +-- to be processed using hsb2hs +module Text.Pandoc.Data (dataFiles) where +import qualified Data.ByteString as B + +dataFiles :: [(FilePath, B.ByteString)] +dataFiles = %blobs "data" |