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:
parent
5a707829d2
commit
a589448ea2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user