File: Let3.session

package info (click to toggle)
frown 0.6.1-13
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 9,956 kB
  • sloc: haskell: 35,132; makefile: 228; csh: 35; yacc: 23
file content (10 lines) | stat: -rw-r--r-- 232 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
> Let3>> eval "2 + 7" :: IO Int
> 9
> Let3>> eval "a + b" :: IO Int
> 0
> Let3>> eval "let x = 4 in x * x" :: IO Int
> 16
> Let3>> eval "let x = 4 in x * x + x" :: IO Int
> 20
> Let3>> eval "(let x = 4 in x * x) + x" :: IO Int
> 16