fork(3) download
  1. import System.Process
  2. import System.Exit
  3.  
  4. main = do
  5. (_,_,_,p) <- createProcess (proc "dirdcv" [])
  6. ExitFailure _ <- waitForProcess p
  7.  
  8. -- This line is never printed:
  9. putStrLn "The command failed"
Success #stdin #stdout 0s 6312KB
stdin
Standard input is empty
stdout
The command failed