projects
/
matthijs
/
master-project
/
cλash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4d203d3
)
Derive Show for HsBinds.
author
Matthijs Kooijman
<m.kooijman@student.utwente.nl>
Thu, 9 Apr 2009 14:01:14 +0000
(16:01 +0200)
committer
Matthijs Kooijman
<m.kooijman@student.utwente.nl>
Thu, 9 Apr 2009 14:01:14 +0000
(16:01 +0200)
CoreShow.hs
patch
|
blob
|
history
diff --git
a/CoreShow.hs
b/CoreShow.hs
index 35abd8bf21bd373e3d2554359f9c9bbd9be244b6..e45d85f743dd8b2099da8b9376555cbd311b8385 100644
(file)
--- a/
CoreShow.hs
+++ b/
CoreShow.hs
@@
-11,6
+11,7
@@
import qualified TyCon
import qualified HsTypes
import qualified HsExpr
import qualified HsTypes
import qualified HsExpr
+import qualified HsBinds
import qualified SrcLoc
import qualified RdrName
import qualified SrcLoc
import qualified RdrName
@@
-27,6
+28,7
@@
deriving instance (Show x) => Show (SrcLoc.Located x)
deriving instance (Show x, OutputableBndr x) => Show (HsExpr.StmtLR x x)
deriving instance (Show x, OutputableBndr x) => Show (HsExpr.HsExpr x)
deriving instance Show (RdrName.RdrName)
deriving instance (Show x, OutputableBndr x) => Show (HsExpr.StmtLR x x)
deriving instance (Show x, OutputableBndr x) => Show (HsExpr.HsExpr x)
deriving instance Show (RdrName.RdrName)
+deriving instance (Show idL, Show idR, OutputableBndr idL, OutputableBndr idR) => Show (HsBinds.HsBindLR idL idR)
-- Implement dummy shows, since deriving them will need loads of other shows
-- Implement dummy shows, since deriving them will need loads of other shows
@@
-49,6
+51,10
@@
instance Show (HsExpr.GroupByClause x) where
show b = "_GroupByClause"
instance Show (HsExpr.HsStmtContext x) where
show b = "_HsStmtContext"
show b = "_GroupByClause"
instance Show (HsExpr.HsStmtContext x) where
show b = "_HsStmtContext"
+instance Show (HsBinds.Prag) where
+ show b = "_Prag"
+instance Show (HsExpr.GRHSs id) where
+ show b = "_GRHSs"
instance (Outputable x) => Show x where
instance (Outputable x) => Show x where