mirror of
https://github.com/github/semantic.git
synced 2024-12-18 12:21:57 +03:00
Add a Leaf type with some constructors.
This commit is contained in:
parent
af0ebfa696
commit
9a4d1725fc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user