instance PyValue a => PyValue (NonNegative a) where
showValue = showValue . fromNonNegative
-
+
instance PyValue a => PyValue (NonEmpty a) where
showValue = showValue . fromNonEmpty
-
+
-- FIXME: should use the 'toRaw' function instead of being harcoded or
-- perhaps use something similar to the NonNegative type instead of
-- using the declareSADT
showValue (JSObject obj) = showValue obj
showValue x = show x
-type JobIdListOnly = [(Bool, Either String JobId)]
+type JobIdListOnly = Map String [(Bool, Either String JobId)]
type InstanceMultiAllocResponse =
([(Bool, Either String JobId)], NonEmptyString)