Skip to content

Instantly share code, notes, and snippets.

@asr
asr / ParensType.hs
Last active August 29, 2015 14:20
Wrong type for the `pParens` parser combinator?
{-# LANGUAGE UnicodeSyntax #-}
-- From : Swiestra (2009). Combinator Parsing: A Short Tutorial
-- Tested with : GHC 7.8.4
------------------------------------------------------------------------------
infix 7 <$>
infixl 7 <$
infixl 5 <*>, <*