Skip to content

Commit e9d06ad

Browse files
Add TestMFlowRate to TestMonetayTypes
1 parent a218917 commit e9d06ad

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/spec-haskell/pkgs/semantic-money/test/Money/Theory/TestMonetaryTypes.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,15 @@ newtype TestMUnit = TestMUnit Integer deriving (Enum, Eq, Ord, Num, Real, Integr
2222
instance Arbitrary TestMUnit where
2323
arbitrary = TestMUnit <$> arbitrary
2424

25+
newtype TestMFlowRate = TestMFlowRate Integer deriving (Enum, Eq, Ord, Num, Real, Integral, Show)
26+
instance Arbitrary TestMFlowRate where
27+
arbitrary = TestMFlowRate <$> arbitrary
28+
2529
data TestMonetaryTypes
2630
instance MonetaryTypes TestMonetaryTypes where
2731
type MT_TIME TestMonetaryTypes = TestTime
2832
type MT_VALUE TestMonetaryTypes = TestMValue
33+
type MT_FLOWRATE TestMonetaryTypes = TestMFlowRate
2934
type MT_UNIT TestMonetaryTypes = TestMUnit
3035
deriving instance Show (BasicParticle TestMonetaryTypes)
3136

0 commit comments

Comments
 (0)