From: Eugene Crosser Date: Sun, 13 Apr 2014 13:54:10 +0000 (+0400) Subject: formatting X-Git-Tag: 0.9.0.0~79 X-Git-Url: http://average.org/gitweb/?a=commitdiff_plain;h=749bf63c8755a574c336b7068d6dad47eeecd55e;p=pdns-pipe-nmc.git formatting --- diff --git a/NmcDom.hs b/NmcDom.hs index 11b58dd..731aa1c 100644 --- a/NmcDom.hs +++ b/NmcDom.hs @@ -26,16 +26,16 @@ data NmcRRService = NmcRRService } deriving (Show, Eq) instance FromJSON NmcRRService where - parseJSON (Array a) = - if length a == 6 then NmcRRService - <$> parseJSON (a ! 0) - <*> parseJSON (a ! 1) - <*> parseJSON (a ! 2) - <*> parseJSON (a ! 3) - <*> parseJSON (a ! 4) - <*> parseJSON (a ! 5) - else empty - parseJSON _ = empty + parseJSON (Array a) = + if length a == 6 then NmcRRService + <$> parseJSON (a ! 0) + <*> parseJSON (a ! 1) + <*> parseJSON (a ! 2) + <*> parseJSON (a ! 3) + <*> parseJSON (a ! 4) + <*> parseJSON (a ! 5) + else empty + parseJSON _ = empty data NmcRRI2p = NmcRRI2p { i2pDestination :: String