diff --git a/aws-lambda-haskell-runtime.cabal b/aws-lambda-haskell-runtime.cabal
--- a/aws-lambda-haskell-runtime.cabal
+++ b/aws-lambda-haskell-runtime.cabal
@@ -1,7 +1,11 @@
-cabal-version: 3.0
+cabal-version: 1.12
 
+-- This file has been generated from package.yaml by hpack version 0.34.3.
+--
+-- see: https://github.com/sol/hpack
+
 name:           aws-lambda-haskell-runtime
-version:        4.0.0
+version:        4.0.1
 synopsis:       Haskell runtime for AWS Lambda
 description:    Please see the README on GitHub at <https://github.com/theam/aws-lambda-haskell-runtime#readme>
 category:       AWS
@@ -20,40 +24,7 @@
   type: git
   location: https://github.com/theam/aws-lambda-haskell-runtime
 
-common common-options
-  build-depends:
-    base ^>= 4.7
-
-  default-extensions:
-    TemplateHaskell
-    OverloadedStrings
-    RecordWildCards
-    ScopedTypeVariables
-    DeriveGeneric
-    TypeApplications
-    FlexibleContexts
-    DeriveAnyClass
-    QuasiQuotes
-
-  ghc-options:
-    -Wall
-    -- -Werror
-    -optP-Wno-nonportable-include-path
-    -Wincomplete-uni-patterns
-    -Wincomplete-record-updates
-    -Wcompat
-    -Widentities
-    -Wredundant-constraints
-    -Wmissing-export-lists
-    -Wpartial-fields
-    -fhide-source-paths
-    -freverse-errors
-
-  default-language: Haskell2010
-
-
 library
-  import: common-options
   exposed-modules:
       Aws.Lambda
   other-modules:
@@ -73,12 +44,13 @@
       Aws.Lambda.Setup
       Aws.Lambda.Utilities
       Paths_aws_lambda_haskell_runtime
-  autogen-modules:
-      Paths_aws_lambda_haskell_runtime
   hs-source-dirs:
       src
+  default-extensions: TemplateHaskell OverloadedStrings RecordWildCards ScopedTypeVariables DeriveGeneric TypeApplications FlexibleContexts DeriveAnyClass QuasiQuotes
+  ghc-options: -Wall -optP-Wno-nonportable-include-path -Wincomplete-uni-patterns -Wincomplete-record-updates -Wcompat -Widentities -Wredundant-constraints -Wmissing-export-lists -Wpartial-fields -fhide-source-paths -freverse-errors
   build-depends:
       aeson
+    , base >=4.7 && <5
     , bytestring
     , case-insensitive
     , exceptions
@@ -92,18 +64,18 @@
     , template-haskell
     , text
     , unordered-containers
+  default-language: Haskell2010
 
 test-suite aws-lambda-haskell-runtime-test
-  import: common-options
   type: exitcode-stdio-1.0
   main-is: Spec.hs
   other-modules:
       Paths_aws_lambda_haskell_runtime
   hs-source-dirs:
       test
-  ghc-options:
-    -threaded
-    -rtsopts
-    -with-rtsopts=-N
+  default-extensions: TemplateHaskell OverloadedStrings RecordWildCards ScopedTypeVariables DeriveGeneric TypeApplications FlexibleContexts DeriveAnyClass QuasiQuotes
+  ghc-options: -Wall -optP-Wno-nonportable-include-path -Wincomplete-uni-patterns -Wincomplete-record-updates -Wcompat -Widentities -Wredundant-constraints -Wmissing-export-lists -Wpartial-fields -fhide-source-paths -freverse-errors -threaded -rtsopts -with-rtsopts=-N
   build-depends:
-     hspec
+      base >=4.7 && <5
+    , hspec
+  default-language: Haskell2010
