5 ms·
If only Haskell would let me do type MTree t = Map t (MTree t) This version works though. data Tree t = Leaf | Node [(t, Tree t)]
by kd0amg 15y ago
If only Haskell would let me do
type MTree t = Map t (MTree t)
This version works though.
data Tree t = Leaf | Node [(t, Tree t)]
- scooty-puff 15y agoThe problem is that the type would be expanded indefinitely: Map t (Map t (Map t ... Try: newtype MTree t = MTree (Map t (MTree t))