projects
/
mate.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
TODO: update; Debug: note about `printfFake'
[mate.git]
/
Mate
/
Debug.hs
diff --git
a/Mate/Debug.hs
b/Mate/Debug.hs
index 8c1ca63b6b0293a06845f3d307a1fdefa30b7e63..dc8954eb84cb4eb184842209aa46a3c654d5deec 100644
(file)
--- a/
Mate/Debug.hs
+++ b/
Mate/Debug.hs
@@
-16,6
+16,7
@@
instance VarArgsFake (IO a) where
instance (Show a, VarArgsFake r) => VarArgsFake (a -> r) where
varFake _ _ = varFake []
+-- note: with -O2 GHC is able to completely optimize away such a `printfFake' call
printfFake :: String -> (VarArgsFake t) => t
printfFake _ = varFake []