@@ -9,6 +9,7 @@ import Text.Pandoc.Readers.Docx
99import Text.Pandoc.Writers.Docx
1010import Text.Pandoc.Error
1111import System.FilePath ((</>))
12+import Text.Pandoc.Class (runIOorExplode)
1213
1314type Options = (WriterOptions, ReaderOptions)
1415
@@ -20,7 +21,7 @@ compareOutput opts nativeFileIn nativeFileOut = do
2021 nf <- Prelude.readFile nativeFileIn
2122 nf' <- Prelude.readFile nativeFileOut
2223 let wopts = fst opts
23− df <- writeDocx wopts{writerUserDataDir = Just (".." </> "data")}
24+ df <- runIOorExplode $ writeDocx wopts{writerUserDataDir = Just (".." </> "data")}
2425 (handleError $ readNative nf)
2526 let (p, _) = handleError $ readDocx (snd opts) df
2627 return (p, handleError $ readNative nf')