git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Allow empty imports lists for only importing instances
bf55694Phil Freeman
src/Language/PureScript/Parser/Declarations.hs+1−1
@@ -100,7 +100,7 @@ parseImportDeclaration = do
100 reserved "import"
100 reserved "import"
101 indented
101 indented
102 moduleName' <- moduleName
102 moduleName' <- moduleName
103− idents <- P.optionMaybe $ parens $ commaSep1 parseDeclarationRef
103+ idents <- P.optionMaybe $ parens $ commaSep parseDeclarationRef
104 return $ ImportDeclaration moduleName' idents
104 return $ ImportDeclaration moduleName' idents
105
105
106parseDeclarationRef :: P.Parsec String ParseState DeclarationRef
106parseDeclarationRef :: P.Parsec String ParseState DeclarationRef