Switch to the new cons (::) in parse library.
commit0ec1cf3e109d0c28eec01ce54c7162cb6ee78fce
authorevancz <info@elm-lang.org>
dateTue 5 Feb 2013, 03:19 (14 years ago)
parent021a27c
elm/src/Parse/Library.hs+1−1
@@ -97,7 +97,7 @@ pipeSep1 :: IParser a -> IParser [a]
9797pipeSep1 = spaceySepBy1 (char '|' <?> "type divider '|'")
9898
9999consSep1 :: IParser a -> IParser [a]
100−consSep1 = spaceySepBy1 (char ':' <?> "cons operator ':'")
100+consSep1 = spaceySepBy1 (string "::" <?> "cons operator '::'")
101101
102102dotSep1 :: IParser a -> IParser [a]
103103dotSep1 p = (:) <$> p <*> many (try (char '.') >> p)