Is there an Erlang library equivalent to Parsec or attoparsec (Written with Haskell) ?
Yes, there is, written in Erlang.
It's called Parsec Erlang.
More Parsec clones in other languages can be found here.