can now derive Show for Attr
This commit is contained in:
parent
4ac314fb48
commit
0f4e219838
|
@ -14,7 +14,7 @@ data Attr = Attr
|
|||
, _namedconf :: Dns.NamedConfMap
|
||||
, _dockerattr :: DockerAttr
|
||||
}
|
||||
deriving (Eq)
|
||||
deriving (Eq, Show)
|
||||
|
||||
instance Monoid Attr where
|
||||
mempty = Attr mempty mempty mempty mempty mempty
|
||||
|
@ -26,15 +26,6 @@ instance Monoid Attr where
|
|||
, _dockerattr = _dockerattr old <> _dockerattr new
|
||||
}
|
||||
|
||||
instance Show Attr where
|
||||
show a = unlines
|
||||
[ "OS " ++ show (_os a)
|
||||
, "sshPubKey " ++ show (_sshPubKey a)
|
||||
, "dns " ++ show (_dns a)
|
||||
, "namedconf " ++ show (_namedconf a)
|
||||
, show (_dockerattr a)
|
||||
]
|
||||
|
||||
data Val a = Val a | NoVal
|
||||
deriving (Eq, Show)
|
||||
|
||||
|
|
Loading…
Reference in New Issue