Skip to content

Instantly share code, notes, and snippets.

@grkuntzmd
Last active August 29, 2015 14:02
Show Gist options
  • Save grkuntzmd/7d5f10539bc9eccacaae to your computer and use it in GitHub Desktop.
Save grkuntzmd/7d5f10539bc9eccacaae to your computer and use it in GitHub Desktop.
Haskell debug #haskell #debug
import Debug.Trace
debug :: Show a => String -> a -> a
debug description value =
trace (description ++ ": " ++ show value) value
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment