Skip to content

Commit

Permalink
handle more syntactice constructs in GetBound
Browse files Browse the repository at this point in the history
  • Loading branch information
phischu committed Jan 28, 2015
1 parent d1c21a6 commit b56e1a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Language/Haskell/Names/GetBound.hs
Expand Up @@ -39,6 +39,7 @@ instance (Data l) => GetBound (Decl l) l where
getBound ctx e = case e of
TypeDecl{} -> []
TypeFamDecl{} -> []
ClosedTypeFamDecl{} -> []
DataDecl _ _ _ _ ds _ -> getBound ctx ds
GDataDecl _ _ _ _ _ ds _ -> getBound ctx ds
DataFamDecl{} -> []
Expand Down Expand Up @@ -67,6 +68,7 @@ instance (Data l) => GetBound (Decl l) l where
InstSig{} -> []
AnnPragma{} -> []
InlineConlikeSig{} -> []
MinimalPragma{} -> []

instance (Data l) => GetBound (QualConDecl l) l where
getBound ctx (QualConDecl _ _ _ d) = getBound ctx d
Expand Down Expand Up @@ -97,6 +99,7 @@ instance (Data l) => GetBound (ClassDecl l) l where
ClsDataFam{} -> []
ClsTyFam{} -> []
ClsTyDef{} -> []
ClsDefSig{} -> []

instance (Data l) => GetBound (Match l) l where
getBound _ctx e = case e of
Expand Down

0 comments on commit b56e1a0

Please sign in to comment.