Docx writer: Accomodate GHC 7.4 (no lookupEnv)
This commit is contained in:
parent
21253b59e8
commit
b613d85af9
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ writeDocx :: WriterOptions -- ^ Writer options
|
||||||
writeDocx opts doc@(Pandoc meta _) = do
|
writeDocx opts doc@(Pandoc meta _) = do
|
||||||
let datadir = writerUserDataDir opts
|
let datadir = writerUserDataDir opts
|
||||||
let doc' = walk fixDisplayMath doc
|
let doc' = walk fixDisplayMath doc
|
||||||
username <- lookupEnv "USERNAME"
|
username <- lookup "USERNAME" <$> getEnvironment
|
||||||
utctime <- getCurrentTime
|
utctime <- getCurrentTime
|
||||||
refArchive <- liftM (toArchive . toLazy) $
|
refArchive <- liftM (toArchive . toLazy) $
|
||||||
case writerReferenceDocx opts of
|
case writerReferenceDocx opts of
|
||||||
|
|
Loading…
Add table
Reference in a new issue