Functor instance for datatype containing function

前端 未结 0 1240
情歌与酒
情歌与酒 2021-01-15 04:04

I have a datatype defined as

data foo a = foo a (a -> a)

The "foo" datatype has two parameter value and function. I need to writ

相关标签:
回答
  • 消灭零回复
提交回复
热议问题