Skip to content

Instantly share code, notes, and snippets.

@pchiusano
Created July 30, 2015 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pchiusano/12ba109454b43b831143 to your computer and use it in GitHub Desktop.
Save pchiusano/12ba109454b43b831143 to your computer and use it in GitHub Desktop.
Debugging trick in Haskell
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