attoparsec

Problem with incomplete input when using Attoparsec

I am converting some functioning Haskell code that uses Parsec to instead use Attoparsec in the hope of getting better performance. I have made the changes and everything compiles but my parser does not work correctly. I am parsing a file that consists of various record types, one per line. Each of my individual functions for parsing ...

Haskell : how to stop Data.Attoparsec.Char8.sepBy when input String is empty ?

hi i've wrote the following Haskell code import Data.Attoparsec (Parser) import qualified Data.Attoparsec.Char8 as A import qualified Data.ByteString.Char8 as B someWithSep sep p = A.sepBy p sep the code is suppose to work this way : main*> A.parse (someWithSep A.skipSpace A.decimal) $ B.pack "123 45 67 89" Done "" [123,45,67,89]...