diff --git a/hasql-class.cabal b/hasql-class.cabal
--- a/hasql-class.cabal
+++ b/hasql-class.cabal
@@ -1,9 +1,11 @@
--- This file has been generated from package.yaml by hpack version 0.14.1.
+-- This file has been generated from package.yaml by hpack version 0.20.0.
 --
 -- see: https://github.com/sol/hpack
+--
+-- hash: adc5ea212d969faa1de603cd41dada7786577c5dad0c9852e3e2d38c81334e34
 
 name:           hasql-class
-version:        0.0.1.0
+version:        0.1.0.0
 synopsis:       Encodable and Decodable classes for hasql
 description:    Please see README.md
 category:       Hasql, Database, PostgreSQL
@@ -31,47 +33,21 @@
   default-extensions: AutoDeriveTypeable DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances OverloadedStrings ScopedTypeVariables
   ghc-options: -Wall
   build-depends:
-      base >= 4.7 && < 4.10
-    , text
+      base >=4.7 && <4.11
     , bytestring
+    , contravariant ==1.4.*
+    , data-default-class >0.0 && <0.2
+    , generics-eot ==0.2.*
+    , hasql >=0.19.11 && <1.2
+    , text
+    , time >=1.4 && <1.9
     , vector
-    , time >= 1.4 && < 1.7
-    , data-default-class > 0.0 && < 0.2
-    , contravariant == 1.4.*
-    , hasql >= 0.19.11 && < 0.20
-    , generics-eot == 0.2.*
   exposed-modules:
       Hasql.Class
       Hasql.Class.Internal.Decodable
       Hasql.Class.Internal.Encodable
   default-language: Haskell2010
 
-test-suite doctest
-  type: exitcode-stdio-1.0
-  main-is: Doctest.hs
-  hs-source-dirs:
-      test
-  default-extensions: AutoDeriveTypeable DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances OverloadedStrings ScopedTypeVariables
-  ghc-options: -Wall
-  build-depends:
-      base >= 4.7 && < 4.10
-    , text
-    , bytestring
-    , vector
-    , time >= 1.4 && < 1.7
-    , data-default-class > 0.0 && < 0.2
-    , contravariant == 1.4.*
-    , hasql >= 0.19.11 && < 0.20
-    , generics-eot == 0.2.*
-    , doctest >= 0.9 && < 0.12
-    , Glob >= 0.7 && < 0.8
-    , containers == 0.5.*
-    , yaml == 0.8.*
-  other-modules:
-      Hasql.ClassSpec
-      Spec
-  default-language: Haskell2010
-
 test-suite spec
   type: exitcode-stdio-1.0
   main-is: Spec.hs
@@ -80,22 +56,22 @@
   default-extensions: AutoDeriveTypeable DataKinds DefaultSignatures DeriveFoldable DeriveFunctor DeriveGeneric DeriveTraversable FlexibleContexts FlexibleInstances OverloadedStrings ScopedTypeVariables
   ghc-options: -Wall
   build-depends:
-      base >= 4.7 && < 4.10
-    , text
+      QuickCheck >=2.8 && <2.12
+    , base >=4.7 && <4.11
     , bytestring
-    , vector
-    , time >= 1.4 && < 1.7
-    , data-default-class > 0.0 && < 0.2
-    , contravariant == 1.4.*
-    , hasql >= 0.19.11 && < 0.20
-    , generics-eot == 0.2.*
+    , contravariant ==1.4.*
+    , data-default-class >0.0 && <0.2
+    , generics-eot ==0.2.*
+    , hasql >=0.19.11 && <1.2
     , hasql-class
-    , hspec > 2 && < 3
-    , string-qq == 0.0.*
-    , QuickCheck >= 2.8 && < 2.9
-    , process > 1.2 && < 2
-    , quickcheck-instances == 0.3.*
+    , hspec >2 && <3
+    , process >1.2 && <2
+    , quickcheck-instances ==0.3.*
+    , string-qq ==0.0.*
+    , text
+    , time >=1.4 && <1.9
+    , vector
   other-modules:
-      Doctest
       Hasql.ClassSpec
+      Paths_hasql_class
   default-language: Haskell2010
diff --git a/src/Hasql/Class/Internal/Decodable.hs b/src/Hasql/Class/Internal/Decodable.hs
--- a/src/Hasql/Class/Internal/Decodable.hs
+++ b/src/Hasql/Class/Internal/Decodable.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE MonoLocalBinds #-}
 module Hasql.Class.Internal.Decodable where
 
 import Data.Default.Class (def)
diff --git a/src/Hasql/Class/Internal/Encodable.hs b/src/Hasql/Class/Internal/Encodable.hs
--- a/src/Hasql/Class/Internal/Encodable.hs
+++ b/src/Hasql/Class/Internal/Encodable.hs
@@ -1,3 +1,4 @@
+{-# LANGUAGE MonoLocalBinds #-}
 module Hasql.Class.Internal.Encodable where
 
 import Data.Default.Class (def)
diff --git a/test/Doctest.hs b/test/Doctest.hs
deleted file mode 100644
--- a/test/Doctest.hs
+++ /dev/null
@@ -1,26 +0,0 @@
-module Main (main) where
-
--- Runs doctest on all files in "src" dir. Assumes:
---   (a) You are using hpack
---   (b) The top-level "default-extensions" are the only extensions besides the
---   ones in the files.
-
-import System.FilePath.Glob (glob)
-import Test.DocTest (doctest)
-import Data.Yaml
-
-newtype Exts = Exts { getExts :: [String] }
-  deriving (Eq, Show, Read)
-
-instance FromJSON Exts where
-  parseJSON (Object v) = Exts <$> v .: "default-extensions"
-  parseJSON _ = fail "expecting object"
-
-main :: IO ()
-main = do
-  hpack' <- decodeFile "package.yaml"
-  hpack <- case hpack' of
-    Nothing -> return $ Exts []
-    Just v  -> return v
-  files <- glob "src/**/*.hs"
-  doctest $ files ++ fmap ("-X" ++) (getExts hpack)
