git.iko.soy/typeable/pandoc
on master help sign in
Docx writer: Accomodate GHC 7.4 (no lookupEnv)
commitb613d85af958a94d8c9b34868c7d67cbb606d725 authorJesse Rosenthal <jrosenthal@jhu.edu> dateTue 26 Aug 2014, 06:43 (12 years ago) parent21253b5
1 file changed+1−1
src/Text/Pandoc/Writers/Docx.hs+1−1
src/Text/Pandoc/Writers/Docx.hs+1−1
@@ -149,7 +149,7 @@ writeDocx :: WriterOptions -- ^ Writer options
149149writeDocx opts doc@(Pandoc meta _) = do
150150 let datadir = writerUserDataDir opts
151151 let doc' = walk fixDisplayMath doc
152− username <- lookupEnv "USERNAME"
152+ username <- lookup "USERNAME" <$> getEnvironment
153153 utctime <- getCurrentTime
154154 refArchive <- liftM (toArchive . toLazy) $
155155 case writerReferenceDocx opts of