]> www.average.org Git - pdns-pipe-nmc.git/commitdiff
formatting
authorEugene Crosser <crosser@average.org>
Sun, 13 Apr 2014 13:54:10 +0000 (17:54 +0400)
committerEugene Crosser <crosser@average.org>
Sun, 13 Apr 2014 13:54:10 +0000 (17:54 +0400)
NmcDom.hs

index 11b58dda3bdfd629467a7ba0c824c180b8ccd6ff..731aa1cbb1f72b279377fc95f85bc22809fc6399 100644 (file)
--- 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