Docx writer: Accomodate GHC 7.4 (no lookupEnv)

This commit is contained in:
Jesse Rosenthal 2014-08-26 06:43:14 -04:00
parent 21253b59e8
commit b613d85af9

View file

@ -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