diff --git a/json-feed.cabal b/json-feed.cabal
--- a/json-feed.cabal
+++ b/json-feed.cabal
@@ -1,5 +1,7 @@
+cabal-version: 2.2
+
 name: json-feed
-version: 1.0.10
+version: 1.0.11
 
 synopsis: JSON Feed
 description:
@@ -8,7 +10,6 @@
   feed formats, but it is serialized as JSON rather than XML.
 
 build-type: Simple
-cabal-version: >= 1.10
 category: Web
 extra-source-files:
   README.markdown
@@ -31,41 +32,50 @@
   location: https://github.com/tfausak/json-feed
   type: git
 
-library
-  build-depends:
-      aeson >= 0.11.2 && < 0.12 || >= 1.0.2 && < 1.6
-    , base >= 4.9.0 && < 4.15
-    , bytestring >= 0.10.8 && < 0.11
-    , mime-types >= 0.1.0 && < 0.2
-    , network-uri >= 2.6.1 && < 2.8
-    , tagsoup >= 0.14 && < 0.15
-    , text >= 1.2.2 && < 1.3
-    , time >= 1.6.0 && < 1.10
-  default-language: Haskell98
-  exposed-modules: JsonFeed
+common basics
+  default-language: Haskell2010
   ghc-options:
     -Weverything
+    -Wno-all-missed-specialisations
     -Wno-implicit-prelude
+    -Wno-missing-exported-signatures
+    -Wno-missing-import-lists
     -Wno-safe
     -Wno-unsafe
-  hs-source-dirs: src/lib
 
   if impl(ghc >= 8.8)
-    ghc-options: -Wno-missing-deriving-strategies
+    ghc-options:
+      -Wno-missing-deriving-strategies
 
   if impl(ghc >= 8.10)
     ghc-options:
       -Wno-missing-safe-haskell-mode
       -Wno-prepositive-qualified-module
 
+library
+  import: basics
+
+  build-depends:
+      aeson >= 0.11.2 && < 0.12 || >= 1.0.2 && < 1.6
+    , base >= 4.9.0 && < 4.15
+    , bytestring >= 0.10.8 && < 0.11
+    , mime-types >= 0.1.0 && < 0.2
+    , network-uri >= 2.6.1 && < 2.8
+    , tagsoup >= 0.14 && < 0.15
+    , text >= 1.2.2 && < 1.3
+    , time >= 1.6.0 && < 1.10
+  exposed-modules: JsonFeed
+  hs-source-dirs: src/lib
+
 test-suite test
+  import: basics
+
   build-depends:
     base -any
     , bytestring -any
     , filepath >= 1.4.1 && < 1.5
     , hspec >= 2.2.3 && < 2.8
     , json-feed -any
-  default-language: Haskell98
   hs-source-dirs: src/test
   main-is: Main.hs
   type: exitcode-stdio-1.0
