diff --git a/Data/Aeson/IP.hs b/Data/Aeson/IP.hs
--- a/Data/Aeson/IP.hs
+++ b/Data/Aeson/IP.hs
@@ -30,7 +30,7 @@
                           Nothing -> fail "Unable to parse IPv4"
 
 -- | The @ToJSON@ instance produces JSON strings matching the @Show@ instance.
--- 
+--
 -- >>> toJSON (toIPv4 [127,0,0,1])
 -- String "127.0.0.1"
 instance ToJSON IPv4 where
@@ -52,7 +52,7 @@
                           Nothing -> fail "Unable to parse IPv6"
 
 -- | The @ToJSON@ instance produces JSON strings matching the @Show@ instance.
--- 
+--
 -- >>> toJSON (toIPv6 [0x2001,0xDB8,0,0,0,0,0,1])
 -- String "2001:db8::1"
 instance ToJSON IPv6 where
@@ -126,7 +126,7 @@
                                               <*> p v <?> Key k
                                               <*> rt)
                 (pure RouteTable.empty)
-        _ -> fail "using IPRTable in this context is not yet supported"
+        _ -> \_ -> fail "using IPRTable in this context is not yet supported"
 
 instance ( FromJSONKey k
          , Read (AddrRange k)
@@ -140,7 +140,7 @@
         ToJSONKeyText f _ -> Object . HashMap.fromList
                                     . map (\(k, v) -> (f k, g v))
                                     . RouteTable.toList
-        _ -> fail "using IPRTable as a JSON key is not yet supported"
+        _ -> error "using IPRTable as a JSON key is not yet supported"
 
 instance (Routable k, Show k, ToJSON k, ToJSON v) => ToJSON (IPRTable k v) where
     toJSON = toJSON1
diff --git a/aeson-iproute.cabal b/aeson-iproute.cabal
--- a/aeson-iproute.cabal
+++ b/aeson-iproute.cabal
@@ -2,7 +2,7 @@
 -- documentation, see http://haskell.org/cabal/users-guide/
 
 name:                aeson-iproute
-version:             0.2
+version:             0.2.1
 synopsis:            Aeson instances for iproute types
 description:         Aeson instances for iproute types.
 license:             BSD3
@@ -13,7 +13,7 @@
 category:            Data
 build-type:          Simple
 cabal-version:       >=1.10
-Tested-With: GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2
+Tested-With:         GHC == 8.4.4, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.2
 
 library
   exposed-modules:     Data.Aeson.IP
@@ -25,7 +25,7 @@
                         
                         
   default-language:    Haskell2010
-  ghc-options:         -Wall -fno-warn-orphans
+  ghc-options:         -Wall -Wno-orphans -Wno-unused-imports
 
 source-repository head
   type: git
