diff options
author | Jesse Rosenthal <jrosenthal@jhu.edu> | 2016-09-24 17:49:07 -0400 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2017-01-25 17:07:39 +0100 |
commit | 0ab4af2f03f4226714a39c959c161def679d9d57 (patch) | |
tree | cceca55efd3b08c6d496d56d5e11422350e42b43 /pandoc.cabal | |
parent | a6b469c02b3c21cfc1b5169ea3e75b7388f55691 (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.cabal | 3 |
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, |