git.iko.soy/typeable/pandoc
on master help sign in
Fix warnings in Text.Pandoc.Process.
commit84a447a88bc4161235f3e800340cd537bf463c9d authorJohn MacFarlane <jgm@berkeley.edu> dateFri 30 Nov 2018, 08:32 (8 years ago) parentfe98c97
1 file changed+5−2
src/Text/Pandoc/Process.hs+5−2
src/Text/Pandoc/Process.hs+5−2
@@ -77,8 +77,11 @@ pipeProcess mbenv cmd args input = do
7777 }
7878 withCreateProcess cp_opts $
7979 \mbInh mbOuth _ pid -> do
80− let Just inh = mbInh
81− Just outh = mbOuth
80+ let (inh, outh) =
81+ case (mbInh, mbOuth) of
82+ (Just i, Just o) -> (i, o)
83+ (Nothing, _) -> error "withCreateProcess no inh"
84+ (_, Nothing) -> error "withCreateProcess no outh"
8285
8386 out <- BL.hGetContents outh
8487