Revision 85bcb1de src/Ganeti/THH.hs

b/src/Ganeti/THH.hs
562 562
-- This is necessary for the default values of opcode parameters and
563 563
-- return values.  For example, if a default value or return type is a
564 564
-- Data.Map, then it must be shown as a Python dictioanry.
565
class Show a => PyValue a where
565
class PyValue a where
566 566
  showValue :: a -> String
567
  showValue = show
568 567

  
569 568
-- | Encapsulates Python default values
570 569
data PyValueEx = forall a. PyValue a => PyValueEx a

Also available in: Unified diff