Skip to content

Instantly share code, notes, and snippets.

@akshaymankar
Created October 15, 2017 03:13
Show Gist options
  • Save akshaymankar/4a9f7487ebafa59ae22305d80033bf5b to your computer and use it in GitHub Desktop.
Save akshaymankar/4a9f7487ebafa59ae22305d80033bf5b to your computer and use it in GitHub Desktop.
Print sneakily in haskell, strictly to be used for debugging
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