aboutsummaryrefslogtreecommitdiff
path: root/spec/src/Thermoprint/API.hs
diff options
context:
space:
mode:
Diffstat (limited to 'spec/src/Thermoprint/API.hs')
-rw-r--r--spec/src/Thermoprint/API.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/src/Thermoprint/API.hs b/spec/src/Thermoprint/API.hs
index 5b9c266..3752848 100644
--- a/spec/src/Thermoprint/API.hs
+++ b/spec/src/Thermoprint/API.hs
@@ -107,6 +107,7 @@ instance ToText UTCTime where
107 toText = T.pack . formatTime defaultTimeLocale "%F_%T%Q" 107 toText = T.pack . formatTime defaultTimeLocale "%F_%T%Q"
108 108
109data Range a = Min a | Max a | Through a a 109data Range a = Min a | Max a | Through a a
110 deriving (Show, Eq, Generic)
110 111
111instance Arbitrary a => Arbitrary (Range a) where 112instance Arbitrary a => Arbitrary (Range a) where
112 arbitrary = oneof [ Min <$> arbitrary 113 arbitrary = oneof [ Min <$> arbitrary