> y = (-41940.917505092) *~ kilo meter
With NegativeLiterals users of dimensional can finally write:
> y = -41940.917505092 *~ kilo meter
Thanks GHC HQ and contributors!
However, be careful so the extension doesn’t break your calculations. Here is an example (not using dimensional) of how you could get bitten. Without NegativeLiterals:
> Prelude> -2 ^ 2 > -4
> Prelude> -2 ^ 2 > 4
I certainly prefer the latter behaviour, but having some regression tests in place when enabling NegativeLiterals might be a good idea.