-
-
Save joshcough/6168aed252e38a419418 to your computer and use it in GitHub Desktop.
Debugging trick in Haskell
This file contains hidden or 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