bound icon indicating copy to clipboard operation
bound copied to clipboard

ListT instance smells funny

Open treeowl opened this issue 7 years ago • 2 comments

ListT from transformers isn't really a monad transformer, so it seems most unlikely to be a valid Bound instance with the default definition.

treeowl avatar Jan 22 '17 23:01 treeowl

So what's it will mean to have

| Weird (ListT Exp a)
| Weird (Exp [a])

Will have a AST node type "of type" a, yet having commuting multiple values (potentially none). I don't know what's that can be useful for, but I don't see it's unlawful either.

phadej avatar Jan 23 '17 09:01 phadej

I have no idea.

treeowl avatar May 26 '17 03:05 treeowl