blob: 9546290fd4ae4d58e2da9b5238d51e45c938670b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
:l Test3.hs
:st mymap (+1) [1::Integer,2,3]
:show bindings
f x -- should fail, unknown return type
let y = f x
y
:p y
:force y
:show bindings
-- we know the result is Integer now
f x
-- should work now
|