[Haskell-cafe] Re: Haskell Helper
Ozgur Akgun
ozgurakgun at gmail.com
Mon Oct 4 18:22:01 EDT 2010
On 4 October 2010 23:10, c8h10n4o2 <asaferibeiro4 at ymail.com> wrote:
> And why
> b <- between (char ',') (char '=') (sepBy alphaNum (char ',') )
> does not return [String] ?
>
alphaNum :: Parser Char
sepBy :: Parser a -> Parser sep -> Parser [a]
sepBy alphaNum sepP :: Parser [Char] or Parser String but not Parser
[String]
between :: Parser open -> Parser close -> Parser a -> Parser a
between openP closeP (sepBy alphaNum sepP) :: Parser String
Hope this helps,
Ozgur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20101004/b4366518/attachment.html
More information about the Haskell-Cafe
mailing list