Fix warnings in Text.Pandoc.Process.

This commit is contained in:
John MacFarlane 2018-11-30 08:32:04 -08:00
parent fe98c97b1c
commit 84a447a88b

View file

@ -77,8 +77,11 @@ pipeProcess mbenv cmd args input = do
}
withCreateProcess cp_opts $
\mbInh mbOuth _ pid -> do
let Just inh = mbInh
Just outh = mbOuth
let (inh, outh) =
case (mbInh, mbOuth) of
(Just i, Just o) -> (i, o)
(Nothing, _) -> error "withCreateProcess no inh"
(_, Nothing) -> error "withCreateProcess no outh"
out <- BL.hGetContents outh