Fix some whitespace
This commit is contained in:
parent
91fd370380
commit
3fa8b3be2b
1 changed files with 9 additions and 6 deletions
|
|
@ -115,7 +115,10 @@ chainl1' :: ReadP a -> ReadP (a -> a -> a) -> ReadP a
|
||||||
chainl1' p f = foldl1 <$> f <*> many1' p
|
chainl1' p f = foldl1 <$> f <*> many1' p
|
||||||
|
|
||||||
parens :: [(Char, Char)]
|
parens :: [(Char, Char)]
|
||||||
parens = [('(',')'),('[',']'),('{','}')]
|
parens = [ ('(', ')')
|
||||||
|
, ('[', ']')
|
||||||
|
, ('{', '}')
|
||||||
|
]
|
||||||
|
|
||||||
isOpeningParen :: Char -> Bool
|
isOpeningParen :: Char -> Bool
|
||||||
isOpeningParen a = isJust $ lookup a parens
|
isOpeningParen a = isJust $ lookup a parens
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue