Last active
August 29, 2015 14:08
-
-
Save chomado/8c945171b9c476ab1088 to your computer and use it in GitHub Desktop.
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
| 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