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 $
|
||||
\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
|
||||
|
||||
|
|
Loading…
Reference in a new issue