[Haskell-cafe] FPS lib

Bulat Ziganshin bulatz at HotPOP.com
Tue Oct 18 06:15:03 EDT 2005


Hello Donald,

Tuesday, October 18, 2005, 11:47:32 AM, you wrote:

>> > 2) as i say you before, i need to sort filenames in windows fashion
>> > (case-ignoring), so if you will include case-ignoring comparision
>> > operators - i will be glad
>> 
>> Case ignoring comparisons make only sense on characters - not on bytes. 
>> And fps is ignoring character set conversion issues. I think the proper
>> way is to provide a layer on top of (and separate from) fps that does
>> conversion into character strings where things like case make sense.

DBS> Indeed, SimonM's packed string code, which I'm currently integrating
DBS> into FPS, is such a layer.

anyway, i need to convert Strings containing filenames to packed
strings and then sort filelist on filenames ignoring case. current FPS
lib don't give me such ability. and of course i don'w want to convert
byte arrays back to [Char] just to compare strings



-- 
Best regards,
 Bulat                            mailto:bulatz at HotPOP.com





More information about the Haskell-Cafe mailing list