on master help sign in
Fix parser for "import List" which before was not importing anything.
commit938675110d4b5bf7ab390ac5e8ec245c91b052af authorEvan Czaplicki <info@elm-lang.org> dateFri 26 Jul 2013, 12:31 (13 years ago) parent0ab92ae
1 file changed+1−1
compiler/Parse/Module.hs+1−1
compiler/Parse/Module.hs+1−1
@@ -35,7 +35,7 @@ import' =
3535 case open of
3636 Just _ -> return (name, Hiding [])
3737 Nothing -> let how = try (whitespace >> (as' <|> importing'))
38− in (,) name <$> option (Importing []) how
38+ in (,) name <$> option (As name) how
3939 where
4040 as' :: IParser ImportMethod
4141 as' = reserved "as" >> whitespace >> As <$> capVar <?> "alias for module"