1
1
mirror of https://github.com/github/semantic.git synced 2024-12-18 04:11:48 +03:00

Add a Leaf type with some constructors.

This commit is contained in:
Rob Rix 2015-11-20 12:59:53 -08:00
parent af0ebfa696
commit 9a4d1725fc

View File

@ -22,6 +22,10 @@ main = do
return (a', b') return (a', b')
return () return ()
data Leaf =
HsQName HsQName
| HsCName HsCName
parseModuleFile :: FilePath -> IO (ParseResult HsModule) parseModuleFile :: FilePath -> IO (ParseResult HsModule)
parseModuleFile file = do parseModuleFile file = do
contents <- readFile file contents <- readFile file