projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Adding tick boxes to the interface syntax; fixes #1510
[ghc-hetmet.git]
/
compiler
/
iface
/
BinIface.hs
diff --git
a/compiler/iface/BinIface.hs
b/compiler/iface/BinIface.hs
index
392873b
..
d852559
100644
(file)
--- a/
compiler/iface/BinIface.hs
+++ b/
compiler/iface/BinIface.hs
@@
-889,6
+889,10
@@
instance Binary IfaceExpr where
putByte bh 11
put_ bh ie
put_ bh ico
putByte bh 11
put_ bh ie
put_ bh ico
+ put_ bh (IfaceTick m ix) = do
+ putByte bh 12
+ put_ bh m
+ put_ bh ix
get bh = do
h <- getByte bh
case h of
get bh = do
h <- getByte bh
case h of
@@
-928,6
+932,9
@@
instance Binary IfaceExpr where
11 -> do ie <- get bh
ico <- get bh
return (IfaceCast ie ico)
11 -> do ie <- get bh
ico <- get bh
return (IfaceCast ie ico)
+ 12 -> do m <- get bh
+ ix <- get bh
+ return (IfaceTick m ix)
instance Binary IfaceConAlt where
put_ bh IfaceDefault = do
instance Binary IfaceConAlt where
put_ bh IfaceDefault = do