logo       

RE: bug with splitPS in Data.PackedString: msg#00063

lang.haskell.glasgow.bugs

Subject: RE: bug with splitPS in Data.PackedString


> there's a bug in Data.PackedString that doesn't exist in PackedString:
>
> Prelude> :m PackedString
> Prelude PackedString> splitPS ('\t') (packString "Foo\tBar")
> ["Foo","Bar"]
> Prelude PackedString> :m Data.PackedString
> Prelude Data.PackedString> splitPS ('\t') (packString "Foo\tBar")
> ["Foo"*** Exception: Ix{Int}.index: Index (7) out of range ((0,6))

(catching up on some old bug reports)

This was fixed in 5.04.3, BTW.

Cheers,
Simon


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise