serokell / o-clock

:hourglass: Type-safe time units in Haskell
Mozilla Public License 2.0
49 stars 6 forks source link

Introduce 'unitNameVal' #42

Closed chshersh closed 6 years ago

chshersh commented 6 years ago

In code we use Proxy and symbolVal several times for taking unit name:

symbolVal (Proxy @(UnitName unit))

It would be good to have unitNameVal so we can just call it as unitNameVal @unit.