[project @ 2003-11-03 12:25:39 by simonmar] Add some I/O error checking so that an error when writing the output file will correctly result in a non-zero exit code.
[project @ 2003-11-03 12:25:39 by simonmar]
Add some I/O error checking so that an error when writing the output
file will correctly result in a non-zero exit code.

Currently, if you try to compile a literate Haskell file and /tmp is
full, unlit will write an empty file and exit successfully, leading to
confusing behaviour.

gridaphobe/ghc,AlexanderPankiv/ghc,gcampax/ghc,snoyberg/ghc,oldmanmike/ghc,lukexi/ghc-7.8-arm64,snoyberg/ghc,oldmanmike/ghc,acowley/ghc,hferreiro/replay,da-x/ghc,GaloisInc/halvm-ghc,jstolarek/ghc,ghc-android/ghc,siddhanathan/ghc,green-haskell/ghc,sdiehl/ghc,mettekou/ghc,ekmett/ghc,forked-upstream-packages-for-ghcjs/ghc,ghc-android/ghc,nushio3/ghc,ghc-android/ghc,gridaphobe/ghc,tjakway/ghcjvm,da-x/ghc,gridaphobe/ghc,olsner/ghc,forked-upstream-packages-for-ghcjs/ghc,nushio3/ghc,fmthoma/ghc,acowley/ghc,ml9951/ghc,christiaanb/ghc,sgillespie/ghc,snoyberg/ghc,bitemyapp/ghc,holzensp/ghc,hferreiro/replay,mcmaniac/ghc,shlevy/ghc,anton-dessiatov/ghc,acowley/ghc,mcmaniac/ghc,spacekitteh/smcghc,nomeata/ghc,GaloisInc/halvm-ghc,vTurbine/ghc,nomeata/ghc,shlevy/ghc,olsner/ghc,frantisekfarka/ghc-dsi,mfine/ghc,lukexi/ghc,vikraman/ghc,urbanslug/ghc,olsner/ghc,fmthoma/ghc,elieux/ghc,siddhanathan/ghc,GaloisInc/halvm-ghc,vikraman/ghc,hferreiro/replay,forked-upstream-packages-for-ghcjs/ghc,da-x/ghc,siddhanathan/ghc,sgillespie/ghc,gcampax/ghc,shlevy/ghc,bitemyapp/ghc,bitemyapp/ghc,mettekou/ghc,urbanslug/ghc,urbanslug/ghc,ml9951/ghc,fmthoma/ghc,AlexanderPankiv/ghc,lukexi/ghc-7.8-arm64,hferreiro/replay,tjakway/ghcjvm,nomeata/ghc,TomMD/ghc,lukexi/ghc,frantisekfarka/ghc-dsi,sgillespie/ghc,anton-dessiatov/ghc,oldmanmike/ghc,ghc-android/ghc,shlevy/ghc,wxwxwwxxx/ghc,siddhanathan/ghc,lukexi/ghc,mettekou/ghc,urbanslug/ghc,mcschroeder/ghc,mcschroeder/ghc,sgillespie/ghc,sdiehl/ghc,olsner/ghc,fmthoma/ghc,vTurbine/ghc,christiaanb/ghc,spacekitteh/smcghc,nushio3/ghc,forked-upstream-packages-for-ghcjs/ghc,gcampax/ghc,shlevy/ghc,jstolarek/ghc,mcmaniac/ghc,acowley/ghc,ml9951/ghc,ezyang/ghc,jstolarek/ghc,lukexi/ghc,vikraman/ghc,jstolarek/ghc,ezyang/ghc,mfine/ghc,GaloisInc/halvm-ghc,da-x/ghc,nkaretnikov/ghc,vTurbine/ghc,gridaphobe/ghc,tjakway/ghcjvm,holzensp/ghc,olsner/ghc,siddhanathan/ghc,gcampax/ghc,hferreiro/replay,nathyong/microghc-ghc,ekmett/ghc,vikraman/ghc,nathyong/microghc-ghc,ilyasergey/GHC-XAppFix,vTurbine/ghc,ekmett/ghc,nkaretnikov/ghc,tjakway/ghcjvm,mettekou/ghc,sdiehl/ghc,wxwxwwxxx/ghc,mettekou/ghc,anton-dessiatov/ghc,GaloisInc/halvm-ghc,frantisekfarka/ghc-dsi,ekmett/ghc,sgillespie/ghc,ilyasergey/GHC-XAppFix,ml9951/ghc,elieux/ghc,mfine/ghc,nathyong/microghc-ghc,nkaretnikov/ghc,ghc-android/ghc,mcschroeder/ghc,olsner/ghc,urbanslug/ghc,AlexanderPankiv/ghc,ml9951/ghc,gridaphobe/ghc,vikraman/ghc,nkaretnikov/ghc,ezyang/ghc,tibbe/ghc,nomeata/ghc,gcampax/ghc,elieux/ghc,nathyong/microghc-ghc,mettekou/ghc,green-haskell/ghc,ghc-android/ghc,wxwxwwxxx/ghc,vTurbine/ghc,vikraman/ghc,ilyasergey/GHC-XAppFix,wxwxwwxxx/ghc,tjakway/ghcjvm,spacekitteh/smcghc,nushio3/ghc,christiaanb/ghc,mfine/ghc,nkaretnikov/ghc,lukexi/ghc-7.8-arm64,AlexanderPankiv/ghc,wxwxwwxxx/ghc,forked-upstream-packages-for-ghcjs/ghc,anton-dessiatov/ghc,TomMD/ghc,acowley/ghc,lukexi/ghc-7.8-arm64,mettekou/ghc,da-x/ghc,ezyang/ghc,mcschroeder/ghc,ml9951/ghc,GaloisInc/halvm-ghc,nomeata/ghc,ezyang/ghc,gcampax/ghc,ryantm/ghc,christiaanb/ghc,sdiehl/ghc,TomMD/ghc,siddhanathan/ghc,forked-upstream-packages-for-ghcjs/ghc,snoyberg/ghc,jstolarek/ghc,tibbe/ghc,christiaanb/ghc,elieux/ghc,sdiehl/ghc,mcschroeder/ghc,bitemyapp/ghc,da-x/ghc,holzensp/ghc,snoyberg/ghc,olsner/ghc,AlexanderPankiv/ghc,TomMD/ghc,nushio3/ghc,vikraman/ghc,green-haskell/ghc,christiaanb/ghc,anton-dessiatov/ghc,ezyang/ghc,da-x/ghc,lukexi/ghc,mfine/ghc,mcschroeder/ghc,elieux/ghc,sdiehl/ghc,nathyong/microghc-ghc,urbanslug/ghc,sgillespie/ghc,fmthoma/ghc,hferreiro/replay,urbanslug/ghc,TomMD/ghc,forked-upstream-packages-for-ghcjs/ghc,holzensp/ghc,holzensp/ghc,TomMD/ghc,green-haskell/ghc,fmthoma/ghc,nushio3/ghc,ekmett/ghc,shlevy/ghc,oldmanmike/ghc,oldmanmike/ghc,mcmaniac/ghc,wxwxwwxxx/ghc,sdiehl/ghc,vTurbine/ghc,ml9951/ghc,mfine/ghc,ghc-android/ghc,nushio3/ghc,lukexi/ghc-7.8-arm64,vTurbine/ghc,ryantm/ghc,tjakway/ghcjvm,spacekitteh/smcghc,nkaretnikov/ghc,AlexanderPankiv/ghc,ezyang/ghc,hferreiro/replay,mfine/ghc,ryantm/ghc,nkaretnikov/ghc,frantisekfarka/ghc-dsi,gridaphobe/ghc,sgillespie/ghc,ml9951/ghc,elieux/ghc,oldmanmike/ghc,tibbe/ghc,shlevy/ghc,ilyasergey/GHC-XAppFix,TomMD/ghc,wxwxwwxxx/ghc,AlexanderPankiv/ghc,anton-dessiatov/ghc,acowley/ghc,snoyberg/ghc,ryantm/ghc,spacekitteh/smcghc,gridaphobe/ghc,snoyberg/ghc,tibbe/ghc,GaloisInc/halvm-ghc,tjakway/ghcjvm,bitemyapp/ghc,frantisekfarka/ghc-dsi,green-haskell/ghc,fmthoma/ghc,siddhanathan/ghc,elieux/ghc,nathyong/microghc-ghc,ryantm/ghc,nathyong/microghc-ghc,gcampax/ghc,mcmaniac/ghc,mcschroeder/ghc,oldmanmike/ghc,tibbe/ghc,anton-dessiatov/ghc,acowley/ghc,christiaanb/ghc