1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

add Read instances

This commit is contained in:
Ayman Nadeem 2019-10-10 14:08:41 -04:00
parent 5a707829d2
commit a589448ea2

View File

@ -17,6 +17,7 @@ data SemanticAST = SemanticAST
{ sourceFilePath :: Input
, format :: Format
}
} deriving (Read)
parseAST :: Parser SemanticAST
parseAST = SemanticAST
@ -54,6 +55,7 @@ data Format = Show
data Input
= FileInput FilePath
| StdInput
deriving (Read)
input :: Parser Input
input = fileInput <|> stdInput