[Yhc] ByteString

Creighton Hogg wchogg at gmail.com
Tue Jun 19 07:28:07 EDT 2007


On 6/19/07, Thomas Shackell <shackell at cs.york.ac.uk> wrote:
>
> Neil Mitchell wrote:
> > The one question you are bound to ask shortly is why we use
> > ReversedPackedStrings, rather than PackedStrings in some cases - and
> > the answer to that is there is no good reason. In the work if you fix
> > all the cases where we have Reversed strings to normal strings that
> > would be great!
>
> Though I can't recommend trying! Packed strings appear all over the
> compiler, sometimes reversed, sometimes not, intermixed with code that
> either assumes 'reversed-ness' or doesn't. It would be seriously hard
> work to change :-)


Well I think I've run into this problem...maybe.  All but one of the tests
pass, the one that doesn't is the timeLargeArray test, and it fails with
this error
yhc: superclassesI InfoUsed (Id 68) [(Type class,Ord,"Data.Ix
",510:8-510:10)]
Now my main question is how some PackedStrings can be reversed and others
not when it looks like everything that uses PackedString imports it from
SysDeps?  The only exception I could find was compiler98/DotNet/Show.hs.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/yhc/attachments/20070619/a5c6474c/attachment.htm


More information about the Yhc mailing list