bug with splitPS in Data.PackedString

Hal Daume III hdaume at ISI.EDU
Fri Mar 7 11:58:43 EST 2003


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))

--
 Hal Daume III                                   | hdaume at isi.edu
 "Arrest this man, he talks in maths."           | www.isi.edu/~hdaume




More information about the Glasgow-haskell-bugs mailing list