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