X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Data%2FPackedString.hs;h=46fb4baf706a8c5d9cf2ab5a8d6f03b83cc855c2;hb=7659d3c9c7c6dc87d3d2be1391f123c15553a1a4;hp=58c4981628823468f8dc3e88e1d0e5c5601df46e;hpb=c38b85c987b9b1f9d9d57fe613b84bb12ca9fb0f;p=ghc-base.git diff --git a/Data/PackedString.hs b/Data/PackedString.hs index 58c4981..46fb4ba 100644 --- a/Data/PackedString.hs +++ b/Data/PackedString.hs @@ -266,7 +266,7 @@ joinPS filler pss = concatPS (splice pss) * joinPS (packString [x]) (splitPS x ls) = ls -} --- | The 'splitPS' function splits the input string on each occurance of the given 'Char'. +-- | The 'splitPS' function splits the input string on each occurrence of the given 'Char'. splitPS :: Char -> PackedString -> [PackedString] splitPS c = splitWithPS (== c) @@ -314,7 +314,7 @@ substrPS (PS ps) begin end = packString [ ps ! i | i <- [begin..end] ] -- | Outputs a 'PackedString' to the specified 'Handle'. -- -- NOTE: the representation of the 'PackedString' in the file is assumed to --- be in the ISO-8859-1 encoding. In other words, only the least signficant +-- be in the ISO-8859-1 encoding. In other words, only the least significant -- byte is taken from each character in the 'PackedString'. hPutPS :: Handle -> PackedString -> IO () hPutPS h (PS ps) = do