newtype Heap overly complicated
newtype Heap = ...
and following instantiation of Monoid
could be shortened to
type Heap = [Heapcell]
so default list functions can be utilized and heaps can be generated without use of data constructor heap
.
Edited by Korbinian Meier