[Haskell-beginners] Re: Iterating through a list of char...

Daniel Fischer daniel.is.fischer at web.de
Thu Apr 29 21:20:39 EDT 2010


Am Friday 30 April 2010 03:13:45 schrieben Sie:
> Sorry to bug you again :\
> I'm getting the following when trying to run it this time...Absolutely
> no idea why!
>
> Not in scope: type constructor or class `Word8'

I forgot

import Data.Word (Word8)

:(

>
> (I replied to you directly since I didn't want to make the already-large
> thread on the mailing list even larger ;)

I do :)

>
> Jean-Nicolas
>
> On 2010-04-29, at 8:29 PM, Daniel Fischer wrote:
> > Am Freitag 30 April 2010 02:03:44 schrieb Jean-Nicolas Jolivet:
> >> I tried to run your code, however, I'm getting a:
> >> "Module `Data.ByteString.Unsafe' does not export `unsafeAt'"
> >
> > Yes, of course. It's "unsafeIndex" (unsafeAt is for arrays), d'oh.
> >
> >> (Using the latest ghc...
> >> http://www.haskell.org/ghc/docs/latest/html/libraries/bytestring-0.9.
> >>1.6 /Data-ByteString-Unsafe.html )
> >>
> >> Jean-Nicolas Jolivet



More information about the Beginners mailing list