summaryrefslogtreecommitdiff
path: root/pandoc.cabal
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2016-09-24 17:49:07 -0400
committerJohn MacFarlane <jgm@berkeley.edu>2017-01-25 17:07:39 +0100
commit0ab4af2f03f4226714a39c959c161def679d9d57 (patch)
treecceca55efd3b08c6d496d56d5e11422350e42b43 /pandoc.cabal
parenta6b469c02b3c21cfc1b5169ea3e75b7388f55691 (diff)
New Free module, with pure versions of IO funcs
Introduce a new module, Text.Pandoc.Free, with pure versions, based on the free monad, of numerous IO functions used in writers and readers. These functions are in a pure Monad (PandocAction). PandocAction takes as a parameter the type of IORefs in it. It can be aliased in individual writers and readers to avoid this parameter. Note that this means that at the moment a reader can only use one type of IORef. If possible, it would be nice to remove this limitation.
Diffstat (limited to 'pandoc.cabal')
-rw-r--r--pandoc.cabal3
1 files changed, 2 insertions, 1 deletions
diff --git a/pandoc.cabal b/pandoc.cabal
index 9ed034fe5..a33b8571f 100644
--- a/pandoc.cabal
+++ b/pandoc.cabal
@@ -293,7 +293,7 @@ Library
filemanip >= 0.3 && < 0.4,
cmark >= 0.5 && < 0.6,
doctemplates >= 0.1 && < 0.2,
- ghc-prim >= 0.2
+ free >= 4
if flag(old-locale)
Build-Depends: old-locale >= 1 && < 1.1,
time >= 1.2 && < 1.5
@@ -384,6 +384,7 @@ Library
Text.Pandoc.SelfContained,
Text.Pandoc.Process,
Text.Pandoc.CSS
+ Text.Pandoc.Free
Other-Modules: Text.Pandoc.Readers.Docx.Lists,
Text.Pandoc.Readers.Docx.Combine,
Text.Pandoc.Readers.Docx.Parse,