John MacFarlane
ff991d1e21
Revert "Revert "Use file-embed instead of hsb2hs to embed data files.""
...
This reverts commit 1fa15c225b
.
2017-04-02 23:10:10 +02:00
John MacFarlane
1fa15c225b
Revert "Use file-embed instead of hsb2hs to embed data files."
...
This reverts commit 10d91c1479
.
2017-03-26 20:48:17 +02:00
John MacFarlane
b7782cf8d3
Revert "Text.Pandoc.Data: ensure it compiles even without embed_data_files."
...
This reverts commit 453970c6b3
.
2017-03-26 20:41:35 +02:00
John MacFarlane
453970c6b3
Text.Pandoc.Data: ensure it compiles even without embed_data_files.
...
In this case we don't depend on file-embed or use TH.
2017-03-26 19:19:54 +02:00
John MacFarlane
10d91c1479
Use file-embed instead of hsb2hs to embed data files.
...
I think template haskell is robust enough now across platforms
that this will work.
Motivation: file-embed gives us better dependency tracking: if a data
file changes, ghc/stack/cabal know to recompile the Data module.
This also removes hsb2hs as a build dependency.
2017-03-26 17:22:00 +02:00
John MacFarlane
fe337b07f7
Use hsb2hs preprocessor instead of TH for embed_data_files.
...
This should work on Windows, unlike the TH solution with
file-embed.
2013-01-23 19:26:39 -08:00
John MacFarlane
9c299d282f
Added Text.Pandoc.Data (non-exported) if embed_data_files selected.
...
This module just exports the association list of embedded data files,
which is used by Shared.
2013-01-23 19:26:39 -08:00