diff --git a/src/Ganeti/Types.hs b/src/Ganeti/Types.hs index 6bd3ade4c965f967de1e173e2c25eccd5c002db1..c0fa6bd515b5edb5467ee7d0c09ae5216a392eb9 100644 --- a/src/Ganeti/Types.hs +++ b/src/Ganeti/Types.hs @@ -92,6 +92,8 @@ module Ganeti.Types , opStatusToRaw , opStatusFromRaw , ELogType(..) + , ReasonElem + , ReasonTrail ) where import Control.Monad (liftM) @@ -485,3 +487,9 @@ $(THH.declareSADT "ELogType" , ("ELogJqueueTest", 'C.elogJqueueTest) ]) $(THH.makeJSONInstance ''ELogType) + +-- | Type of one element of a reason trail. +type ReasonElem = (String, String, Integer) + +-- | Type representing a reason trail. +type ReasonTrail = [ReasonElem]