Better HN
topnewbestaskshowjobs
Log inSign up

scooty-puff

7 karma · joined Oct 3, 2011 (15y ago) · 4 submissions

Submissions

comment 14y ago · link · parent

The problem is that the type would be expanded indefinitely:

  Map t (Map t (Map t ...
Try:

  newtype MTree t = MTree (Map t (MTree t))

comment 14y ago · link · parent

Does it hurt to have extra semi-colons? Maybe you have some empty statements. Does it hurt to have too few? Well, if you either do not know what you're doing, or someone maintaining doesn't understand what you did, etc., then yes.

comment 15y ago · link · parent

http://hpaste.org/52109, in case one prefers to be more explicit.

comment 15y ago · link · parent

http://hpaste.org/52108