1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 00:12:29 +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 { sourceFilePath :: Input
, format :: Format , format :: Format
} }
} deriving (Read)
parseAST :: Parser SemanticAST parseAST :: Parser SemanticAST
parseAST = SemanticAST parseAST = SemanticAST
@ -54,6 +55,7 @@ data Format = Show
data Input data Input
= FileInput FilePath = FileInput FilePath
| StdInput | StdInput
deriving (Read)
input :: Parser Input input :: Parser Input
input = fileInput <|> stdInput input = fileInput <|> stdInput