Fix warnings in Text.Pandoc.Process.
This commit is contained in:
parent
fe98c97b1c
commit
84a447a88b
1 changed files with 5 additions and 2 deletions
|
@ -77,8 +77,11 @@ pipeProcess mbenv cmd args input = do
|
||||||
}
|
}
|
||||||
withCreateProcess cp_opts $
|
withCreateProcess cp_opts $
|
||||||
\mbInh mbOuth _ pid -> do
|
\mbInh mbOuth _ pid -> do
|
||||||
let Just inh = mbInh
|
let (inh, outh) =
|
||||||
Just outh = mbOuth
|
case (mbInh, mbOuth) of
|
||||||
|
(Just i, Just o) -> (i, o)
|
||||||
|
(Nothing, _) -> error "withCreateProcess no inh"
|
||||||
|
(_, Nothing) -> error "withCreateProcess no outh"
|
||||||
|
|
||||||
out <- BL.hGetContents outh
|
out <- BL.hGetContents outh
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue