Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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