[Haskell-cafe] Re: Comments on reading two ints off Bytestring
Benja Fallenstein
benja.fallenstein at gmail.com
Wed Dec 26 06:43:53 EST 2007
On Dec 26, 2007 12:42 PM, Benja Fallenstein <benja.fallenstein at gmail.com> wrote:
> parseHeader :: BS.ByteString -> Maybe (Int,Int)
> parseHeader = evalStateT $ liftM2 (,) parseInt parseInt where
> parseInt = StateT $ BS.readInt . BS.dropWhile (not . isDigit)
(oh, I missed Conal's mail which says the same thing)
- Benja
More information about the Haskell-Cafe
mailing list