Skip to content

Instantly share code, notes, and snippets.

@aymannadeem
Created June 23, 2020 18:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aymannadeem/26669d51cc322a4ada90a289ba6b05a9 to your computer and use it in GitHub Desktop.
Save aymannadeem/26669d51cc322a4ada90a289ba6b05a9 to your computer and use it in GitHub Desktop.
data IfStatement a
= IfStatement {Language.Python.AST.ann :: !a,
Language.Python.AST.alternative :: ![AST.Parse.Err
((GHC.Generics.:+:)
ElifClause ElseClause a)],
Language.Python.AST.consequence :: !(AST.Parse.Err (Block a)),
Language.Python.AST.condition :: !(AST.Parse.Err (Expression a))}
-- Defined at /Users/aymannadeem/github/semantic/semantic-python/src/Language/Python/AST.hs:28:1
instance Eq a => Eq (IfStatement a)
-- Defined at /Users/aymannadeem/github/semantic/semantic-python/src/Language/Python/AST.hs:28:1
instance Foldable IfStatement
-- Defined at /Users/aymannadeem/github/semantic/semantic-python/src/Language/Python/AST.hs:28:1
instance Functor IfStatement
-- Defined at /Users/aymannadeem/github/semantic/semantic-python/src/Language/Python/AST.hs:28:1
instance Ord a => Ord (IfStatement a)
-- Defined at /Users/aymannadeem/github/semantic/semantic-python/src/Language/Python/AST.hs:28:1
instance Show a => Show (IfStatement a)
-- Defined at /Users/aymannadeem/github/semantic/semantic-python/src/Language/Python/AST.hs:28:1
instance Traversable IfStatement
-- Defined at /Users/aymannadeem/github/semantic/semantic-python/src/Language/Python/AST.hs:28:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment