mirror of
https://github.com/grin-compiler/grin.git
synced 2024-09-11 07:25:28 +03:00
Fix set1 parsing and ignore HIE yaml
This commit is contained in:
parent
b795014ba0
commit
d2d8b9c82f
2
.gitignore
vendored
2
.gitignore
vendored
@ -31,3 +31,5 @@ grin/.end-to-end-test/
|
||||
*.out.ll
|
||||
*.out.s
|
||||
.ghc.environment.*
|
||||
hie.yaml
|
||||
*.lock
|
||||
|
@ -89,11 +89,14 @@ vec1 p = Vec.fromList <$> list1 p
|
||||
bracedList :: Parser a -> Parser [a]
|
||||
bracedList p = braces (sepBy p (op ","))
|
||||
|
||||
bracedList1 :: Parser a -> Parser [a]
|
||||
bracedList1 p = braces (sepBy1 p (op ","))
|
||||
|
||||
set :: Ord a => Parser a -> Parser (Set a)
|
||||
set p = Set.fromList <$> bracedList p
|
||||
|
||||
set1 :: Ord a => Parser a -> Parser (Set a)
|
||||
set1 p = Set.fromList <$> bracedList p
|
||||
set1 p = Set.fromList <$> bracedList1 p
|
||||
|
||||
anySingleBut :: MonadParsec e s m => Token s -> m (Token s)
|
||||
anySingleBut t = satisfy (/= t)
|
||||
|
Loading…
Reference in New Issue
Block a user