Advertisement
bos

Untitled

bos
Nov 16th, 2012
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {-# LANGUAGE BangPatterns #-}
  2. module F (f) where
  3.  
  4. import qualified Data.Attoparsec.ByteString as A
  5. import qualified Data.ByteString as B
  6.  
  7. f = d >>= \x -> return $! B.reverse x
  8.  
  9. d = A.takeWhile isDigit
  10.     where isDigit w = w >= 48 && w <= 57
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement