From b613d85af958a94d8c9b34868c7d67cbb606d725 Mon Sep 17 00:00:00 2001 From: Jesse Rosenthal Date: Tue, 26 Aug 2014 06:43:14 -0400 Subject: Docx writer: Accomodate GHC 7.4 (no lookupEnv) --- src/Text/Pandoc/Writers/Docx.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Text') diff --git a/src/Text/Pandoc/Writers/Docx.hs b/src/Text/Pandoc/Writers/Docx.hs index 1b7219895..687a85f9c 100644 --- a/src/Text/Pandoc/Writers/Docx.hs +++ b/src/Text/Pandoc/Writers/Docx.hs @@ -149,7 +149,7 @@ writeDocx :: WriterOptions -- ^ Writer options writeDocx opts doc@(Pandoc meta _) = do let datadir = writerUserDataDir opts let doc' = walk fixDisplayMath doc - username <- lookupEnv "USERNAME" + username <- lookup "USERNAME" <$> getEnvironment utctime <- getCurrentTime refArchive <- liftM (toArchive . toLazy) $ case writerReferenceDocx opts of -- cgit v1.2.3