Template Ord
- filOP 1
How do I make the data-type created by a template (not the template itself) implement
Ord?eg.:
let a: [A] = ... let x = L.sort a - cocreature 4
Templates derive
EqandShowby default. The template syntax does not allow you to use the regular deriving clauses but you can use a feature called “standalone deriving” to derive anOrdinstance for your templateA:deriving instance Ord a