簡単な質問:次元GHC を使用すると、 の型が次のように推論testRate = 10 *~ (watt / second)
されます。
testRate
:: Numeric.Units.Dimensional.Quantity
(Numeric.Units.Dimensional.Dim
(numtype-1.0.1:Numeric.NumType.Pos
numtype-1.0.1:Numeric.NumType.Pos1)
(numtype-1.0.1:Numeric.NumType.Pos
numtype-1.0.1:Numeric.NumType.Zero)
(numtype-1.0.1:Numeric.NumType.Neg
(numtype-1.0.1:Numeric.NumType.Neg
numtype-1.0.1:Numeric.NumType.Neg2))
numtype-1.0.1:Numeric.NumType.Zero
numtype-1.0.1:Numeric.NumType.Zero
numtype-1.0.1:Numeric.NumType.Zero
numtype-1.0.1:Numeric.NumType.Zero)
a
testRateの短い型は何ですか? そして、他のそのようなユニットのタイプをどのように導出しますか?