Skip to content

Instantly share code, notes, and snippets.

@chomado
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save chomado/8c945171b9c476ab1088 to your computer and use it in GitHub Desktop.

Select an option

Save chomado/8c945171b9c476ab1088 to your computer and use it in GitHub Desktop.
import Debug.Trace
-- trace (表示させたい文字列) (処理return)
f x = trace ("x = " ++ show x) x + 1
main = do
traceIO $ show $ f 5
-- x = 5
-- 6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment