diff options
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r-- | src/Text/Pandoc/Data.hsb (renamed from src/Text/Pandoc/Data.hs) | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Text/Pandoc/Data.hs b/src/Text/Pandoc/Data.hsb index df26f5412..02c109816 100644 --- a/src/Text/Pandoc/Data.hs +++ b/src/Text/Pandoc/Data.hsb @@ -1,8 +1,6 @@ -{-# LANGUAGE TemplateHaskell #-} - +{-# LANGUAGE OverloadedStrings #-} +-- to be processed using hsb2hs module Text.Pandoc.Data (dataFiles) where - -import Data.FileEmbed import qualified Data.ByteString as B import System.FilePath (splitDirectories) import qualified System.FilePath.Posix as Posix @@ -14,4 +12,5 @@ dataFiles = map (\(fp, contents) -> (Posix.joinPath (splitDirectories fp), contents)) dataFiles' dataFiles' :: [(FilePath, B.ByteString)] -dataFiles' = ("MANUAL.txt", $(embedFile "MANUAL.txt")) : $(embedDir "data") +dataFiles' = ("MANUAL.txt", %blob "MANUAL.txt") : %blobs "data" + |