Created
July 30, 2015 01:25
-
-
Save pchiusano/12ba109454b43b831143 to your computer and use it in GitHub Desktop.
Debugging trick in Haskell
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
module Foo where | |
import Debug.Trace | |
traceByteString :: String -> ByteString -> ByteString | |
traceByteString msg b | traceShow b False = undefined | |
traceByteString msg b = b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment