| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Wakame.Nub
Documentation
>>>import Wakame
Typeclass for reshaping fields
nub function eliminates duplicate fileds.
When duplication, the first element takes precedence.
It also reorders fields so to match the return type.
>>>toRow (keyed @"x" 42.0, keyed @"x" 56.4)(x: 42.0) :* (x: 56.4) :* Nil>>>nub $ toRow (keyed @"x" 42.0, keyed @"x" 56.4) :: Row '[ '("x", Double)](x: 42.0) :* Nil