[project @ 2003-04-15 10:41:14 by simonmar] Re-instate joinPS which appears to have been accidentally left out of this revised version of PackedString, and add unlinesPS and unwordsPS which are the analogs of Data.List.unlines and Data.List.unwords respectively.
[project @ 2003-04-15 10:41:14 by simonmar]
Re-instate joinPS which appears to have been accidentally left out of
this revised version of PackedString, and add unlinesPS and unwordsPS
which are the analogs of Data.List.unlines and Data.List.unwords
respectively.

Fix bug: linesPS doesn't work the same way as Data.List.lines, because
it strips out empty lines, and it therefore isn't the inverse of
unlinesPS.  This is because linesPS is defined in terms of splitPS,
which omits empty substrings.  However, the comments next to
splitPS/splitWithPS state that the following should hold:

  joinPS (packString [x]) (splitPS x ls) = ls

which implies that splitPS should *not* omit empty substrings.  So the
definition of splitPS is inconsistent.  I therefore opted to fix
splitPS to make the above property hold, and modify wordsPS to work
with the new definition (it previously relied on the old behaviour).

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