[Haskell] ByteString tokens

Chad Scherrer chad.scherrer at gmail.com
Mon Oct 2 17:20:22 EDT 2006


The Haddock documentation days there is a function

tokens :: (Char -> Bool) -> ByteString -> [ByteString]
in Data.ByteString.Lazy.Char8

But in ghci, I get this:

------------------------------------------------------------------------
% ./ghci
   ___         ___ _
  / _ \ /\  /\/ __(_)
 / /_\// /_/ / /  | |      GHC Interactive, version 6.5.20061001, for
Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package base ... linking ... done.
Prelude> :m Data.ByteString.Lazy.Char8
Prelude Data.ByteString.Lazy.Char8> :t tokens

<interactive>:1:0: Not in scope: `tokens'
------------------------------------------------------------------------
Any idea where it went?

Thanks,

-- 

Chad Scherrer

"Time flies like an arrow; fruit flies like a banana" -- Groucho Marx


More information about the Haskell mailing list