on master help sign in
Switch to the new cons (::) in parse library.
0ec1cf3evancz
elm/src/Parse/Library.hs+1−1
@@ -97,7 +97,7 @@ pipeSep1 :: IParser a -> IParser [a]
97pipeSep1 = spaceySepBy1 (char '|' <?> "type divider '|'")
97pipeSep1 = spaceySepBy1 (char '|' <?> "type divider '|'")
98
98
99consSep1 :: IParser a -> IParser [a]
99consSep1 :: IParser a -> IParser [a]
100−consSep1 = spaceySepBy1 (char ':' <?> "cons operator ':'")
100+consSep1 = spaceySepBy1 (string "::" <?> "cons operator '::'")
101
101
102dotSep1 :: IParser a -> IParser [a]
102dotSep1 :: IParser a -> IParser [a]
103dotSep1 p = (:) <$> p <*> many (try (char '.') >> p)
103dotSep1 p = (:) <$> p <*> many (try (char '.') >> p)