Skip to content

Instantly share code, notes, and snippets.

View asr's full-sized avatar

Andrés Sicard-Ramírez asr

View GitHub Profile
@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 <*>, <*