aboutsummaryrefslogtreecommitdiff
path: root/spec/src/Thermoprint/Identifiers.hs
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2017-03-07 14:16:21 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2017-03-07 14:16:21 +0100
commit7065a8cc1b8b01cd32d4b1d5317b323fec5238bd (patch)
treed6608f463b066aa6caf33357fd9ae0e508e49084 /spec/src/Thermoprint/Identifiers.hs
parent75d9fe614dca572aa1d7cfa53553e9c103eb2dd0 (diff)
downloadthermoprint-7065a8cc1b8b01cd32d4b1d5317b323fec5238bd.tar
thermoprint-7065a8cc1b8b01cd32d4b1d5317b323fec5238bd.tar.gz
thermoprint-7065a8cc1b8b01cd32d4b1d5317b323fec5238bd.tar.bz2
thermoprint-7065a8cc1b8b01cd32d4b1d5317b323fec5238bd.tar.xz
thermoprint-7065a8cc1b8b01cd32d4b1d5317b323fec5238bd.zip
Bump versions
Diffstat (limited to 'spec/src/Thermoprint/Identifiers.hs')
-rw-r--r--spec/src/Thermoprint/Identifiers.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/src/Thermoprint/Identifiers.hs b/spec/src/Thermoprint/Identifiers.hs
index 2a07318..e90602c 100644
--- a/spec/src/Thermoprint/Identifiers.hs
+++ b/spec/src/Thermoprint/Identifiers.hs
@@ -13,16 +13,16 @@ import GHC.Generics (Generic)
13import Control.DeepSeq (NFData) 13import Control.DeepSeq (NFData)
14 14
15import Servant.API (ToHttpApiData, FromHttpApiData) 15import Servant.API (ToHttpApiData, FromHttpApiData)
16import Data.Aeson (FromJSON, ToJSON) 16import Data.Aeson (FromJSON, ToJSON, FromJSONKey, ToJSONKey)
17 17
18newtype PrinterId = PrinterId Integer 18newtype PrinterId = PrinterId Integer
19 deriving (Show, Read, Eq, Ord, Num, Real, Integral, Enum, FromHttpApiData, ToHttpApiData, FromJSON, ToJSON, Typeable, Generic, NFData) 19 deriving (Show, Read, Eq, Ord, Num, Real, Integral, Enum, FromHttpApiData, ToHttpApiData, FromJSON, ToJSON, ToJSONKey, FromJSONKey, Typeable, Generic, NFData)
20 20
21newtype JobId = JobId Integer 21newtype JobId = JobId Integer
22 deriving (Show, Read, Eq, Ord, Num, Real, Integral, Enum, FromHttpApiData, ToHttpApiData, FromJSON, ToJSON, Typeable, Generic, NFData) 22 deriving (Show, Read, Eq, Ord, Num, Real, Integral, Enum, FromHttpApiData, ToHttpApiData, FromJSON, ToJSON, ToJSONKey, FromJSONKey, Typeable, Generic, NFData)
23 23
24newtype DraftId = DraftId Integer 24newtype DraftId = DraftId Integer
25 deriving (Show, Read, Eq, Ord, Num, Real, Integral, Enum, FromHttpApiData, ToHttpApiData, FromJSON, ToJSON, Typeable, Generic, NFData) 25 deriving (Show, Read, Eq, Ord, Num, Real, Integral, Enum, FromHttpApiData, ToHttpApiData, FromJSON, ToJSON, ToJSONKey, FromJSONKey, Typeable, Generic, NFData)
26 26
27castId :: (Integral a, Enum b) => a -> b 27castId :: (Integral a, Enum b) => a -> b
28castId = toEnum . fromInteger . toInteger 28castId = toEnum . fromInteger . toInteger