Skip to content

Instantly share code, notes, and snippets.

@LeifW
Created December 17, 2012 02:07
Show Gist options
  • Select an option

  • Save LeifW/4315293 to your computer and use it in GitHub Desktop.

Select an option

Save LeifW/4315293 to your computer and use it in GitHub Desktop.
by-name vs by-value
module Main
import Debug.Trace
foo : (x: Int) -> String
foo x = show (x + 10) ++ show x
five : Int
five = trace "evaling" 5
main : IO ()
main = putStrLn $ foo five
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment