hen 0.0.1 → 0.0.2
raw patch · 2 files changed
+7/−7 lines, 2 filesdep ~bitsetPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
Dependency ranges changed: bitset
API changes (from Hackage documentation)
+ System.Xen.Types: instance Read DomId
+ System.Xen.Types: instance Read DomainFlag
+ System.Xen.Types: instance Read DomainInfo
+ System.Xen.Types: instance Read DomainShutdownReason
- System.Xen: DomainInfo :: {-# UNPACK #-} !DomId -> {-# UNPACK #-} !Word32 -> BitSet DomainFlag -> Maybe DomainShutdownReason -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word64 -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word32 -> UUID -> {-# UNPACK #-} !Word32 -> DomainInfo
+ System.Xen: DomainInfo :: {-# UNPACK #-} !DomId -> {-# UNPACK #-} !Word32 -> BitSet DomainFlag -> Maybe DomainShutdownReason -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word64 -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !UUID -> {-# UNPACK #-} !Word32 -> DomainInfo
- System.Xen: domainInfoDomHandle :: DomainInfo -> UUID
+ System.Xen: domainInfoDomHandle :: DomainInfo -> {-# UNPACK #-} !UUID
- System.Xen.Types: DomainInfo :: {-# UNPACK #-} !DomId -> {-# UNPACK #-} !Word32 -> BitSet DomainFlag -> Maybe DomainShutdownReason -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word64 -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word32 -> UUID -> {-# UNPACK #-} !Word32 -> DomainInfo
+ System.Xen.Types: DomainInfo :: {-# UNPACK #-} !DomId -> {-# UNPACK #-} !Word32 -> BitSet DomainFlag -> Maybe DomainShutdownReason -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word64 -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !Word32 -> {-# UNPACK #-} !UUID -> {-# UNPACK #-} !Word32 -> DomainInfo
- System.Xen.Types: domainInfoDomHandle :: DomainInfo -> UUID
+ System.Xen.Types: domainInfoDomHandle :: DomainInfo -> {-# UNPACK #-} !UUID
Files
- hen.cabal +2/−2
- src/System/Xen/Types.hsc +5/−5
hen.cabal view
@@ -1,5 +1,5 @@ Name: hen-Version: 0.0.1+Version: 0.0.2 Synopsis: Haskell bindings to Xen hypervisor interface Description: Haskell bindings to Xen hypervisor interface License: MIT@@ -28,7 +28,7 @@ , lifted-base == 0.2.* , monad-control == 0.3.* , uuid == 1.2.*- , bitset == 1.2.*+ , bitset == 1.3.* Exposed-modules: System.Xen System.Xen.High
src/System/Xen/Types.hsc view
@@ -48,7 +48,7 @@ -- | Domain id, wrapper around 'Word32'. newtype DomId = DomId { unDomId :: Word32 }- deriving (Eq, Ord, Show, Storable)+ deriving (Eq, Ord, Show, Read, Storable) -- | Domain flags. It's translated from xc_dominfo structure, so it's possible to -- be mutual exclusion flags in one domain, e.g. 'DomainFlagShutdown' and@@ -61,7 +61,7 @@ | DomainFlagRunning | DomainFlagHVM | DomainFlagDebugged- deriving (Enum, Eq, Ord, Show)+ deriving (Enum, Eq, Ord, Show, Read) -- | Domain shutdown reason it's only meaningful if domain has 'DomainFlagShutdown' -- flag.@@ -70,7 +70,7 @@ | DomainShutdownReasonSuspend | DomainShutdownReasonCrash | DomainShutdownReasonWatchdog- deriving (Eq, Ord, Show)+ deriving (Eq, Ord, Show, Read) -- | Information about a single domain. data DomainInfo = DomainInfo@@ -87,11 +87,11 @@ , domainInfoMaxMemKb :: {-# UNPACK #-} !Word32 , domainInfoNubmerOfOnlineVcpus :: {-# UNPACK #-} !Word32 , domainInfoMaxVcpuId :: {-# UNPACK #-} !Word32- , domainInfoDomHandle :: UUID+ , domainInfoDomHandle :: {-# UNPACK #-} !UUID #if XEN_SYSCTL_INTERFACE_VERSION == 8 , domainInfoCpuPool :: {-# UNPACK #-} !Word32 #endif- } deriving (Eq, Ord, Show)+ } deriving (Eq, Ord, Show, Read) -- | Constats used in this instance defined in <xen/sched.h>. instance Storable DomainShutdownReason where