Move VTypes to the appropriate place
authorJose A. Lopes <jabolopes@google.com>
Fri, 4 Oct 2013 15:16:28 +0000 (17:16 +0200)
committerJose A. Lopes <jabolopes@google.com>
Tue, 8 Oct 2013 12:57:27 +0000 (14:57 +0200)
Move 'VType' related constants to the appropriate place to match
Python's constants module.

Signed-off-by: Jose A. Lopes <jabolopes@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>

src/Ganeti/HsConstants.hs

index 8a100ea..ccb1825 100644 (file)
@@ -775,6 +775,26 @@ rpcTmo_1day = Types.rpcTimeoutToRaw OneDay
 rpcConnectTimeout :: Int
 rpcConnectTimeout = 5
 
+-- * VTypes
+
+vtypeBool :: VType
+vtypeBool = VTypeBool
+
+vtypeInt :: VType
+vtypeInt = VTypeInt
+
+vtypeMaybeString :: VType
+vtypeMaybeString = VTypeMaybeString
+
+-- | Size in MiBs
+vtypeSize :: VType
+vtypeSize = VTypeSize
+
+vtypeString :: VType
+vtypeString = VTypeString
+
+enforceableTypes :: FrozenSet VType
+enforceableTypes = ConstantUtils.mkSet [minBound..]
 
 -- | Instance specs
 --
@@ -913,26 +933,12 @@ instanceRebootFull = Types.rebootTypeToRaw RebootFull
 rebootTypes :: FrozenSet String
 rebootTypes = ConstantUtils.mkSet $ map Types.rebootTypeToRaw [minBound..]
 
--- * VTypes
 
-vtypeBool :: String
-vtypeBool = Types.vTypeToRaw VTypeBool
 
-vtypeInt :: String
-vtypeInt = Types.vTypeToRaw VTypeInt
 
-vtypeMaybeString :: String
-vtypeMaybeString = Types.vTypeToRaw VTypeMaybeString
 
--- | Size in MiBs
-vtypeSize :: String
-vtypeSize = Types.vTypeToRaw VTypeSize
 
-vtypeString :: String
-vtypeString = Types.vTypeToRaw VTypeString
 
-enforceableTypes :: FrozenSet String
-enforceableTypes = ConstantUtils.mkSet $ map Types.vTypeToRaw [minBound..]
 
 -- * OOB supported commands