Created
October 15, 2017 03:13
-
-
Save akshaymankar/4a9f7487ebafa59ae22305d80033bf5b to your computer and use it in GitHub Desktop.
Print sneakily in haskell, strictly to be used for debugging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sneakyPrint :: Show a => a -> a | |
sneakyPrint a = unsafePerformIO $ do | |
print a | |
return a | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment