小编Jen*_*ens的帖子

Why is this (unexpected) type returned by a higher order function?

Confused by haskell types [*]

I am beginning to learn haskell and am confused by the result of haskells type inference (see example below). Unfortunately I am not fluent enough in haskell to formulate the real question, so I have to work by example.

[*] As soon as I know the real question, I'll update the caption..

My goal

I am following the Get programming with haskell book. In lesson 10 a way to 'hold state' is shown:


-- The …
Run Code Online (Sandbox Code Playgroud)

haskell types

6
推荐指数
1
解决办法
83
查看次数

标签 统计

haskell ×1

types ×1