From 0ab4af2f03f4226714a39c959c161def679d9d57 Mon Sep 17 00:00:00 2001 From: Jesse Rosenthal Date: Sat, 24 Sep 2016 17:49:07 -0400 Subject: 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. --- pandoc.cabal | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pandoc.cabal') 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, -- cgit v1.2.3