
8 Apr
2014
8 Apr
'14
5:34 p.m.
On Tue, Apr 08, 2014 at 12:54:17PM +0700, Kim-Ee Yeoh wrote:
Answer: []. Yes, [] is a functor, the way Maybe and IO are functors. So f = []. It's unusual but only syntatically in the sense that Haskell says to write Maybe Int but rejects [] Int. You have to write [Int] to mean [] Int.
This is not true. In fact, [] Int is perfectly valid Haskell syntax; it's just not very common. -Brent