diff --git a/doctest/DocTest.hs b/doctest/DocTest.hs
new file mode 100644
--- /dev/null
+++ b/doctest/DocTest.hs
@@ -0,0 +1,4 @@
+import Test.DocTest
+
+main :: IO ()
+main = doctest ["-isrc", "src", "-XTypeApplications"]
diff --git a/genvalidity-hspec-binary.cabal b/genvalidity-hspec-binary.cabal
--- a/genvalidity-hspec-binary.cabal
+++ b/genvalidity-hspec-binary.cabal
@@ -1,59 +1,76 @@
-name: genvalidity-hspec-binary
-version: 0.1.0.0
-cabal-version: >=1.10
-build-type: Simple
-license: MIT
-license-file: LICENSE
-copyright: 2017 Tom Sydney Kerckhove
-maintainer: syd.kerckhove@gmail.com
-homepage: https://github.com/NorfairKing/validity#readme
-synopsis: Standard spec's for binary-related Instances
-description:
-    Standard spec's for cereal-related Instances, see https://hackage.haskell.org/package/binary.
-category: Testing
-author: Nick Van den Broeck
+-- This file has been generated from package.yaml by hpack version 0.20.0.
+--
+-- see: https://github.com/sol/hpack
+--
+-- hash: 88f9f2d292613701c8e38147c6851a5eb8161930d97285f7ca7cfb243fb8b3c5
+
+name:           genvalidity-hspec-binary
+version:        0.2.0.0
+synopsis:       Standard spec's for binary-related Instances
+description:    Standard spec's for cereal-related Instances, see https://hackage.haskell.org/package/binary.
+category:       Testing
+homepage:       https://github.com/NorfairKing/validity#readme
+bug-reports:    https://github.com/NorfairKing/validity/issues
+author:         Nick Van den Broeck
+maintainer:     syd.kerckhove@gmail.com
+copyright:      2017-2018 Tom Sydney Kerckhove
+license:        MIT
+license-file:   LICENSE
+build-type:     Simple
+cabal-version:  >= 1.10
+
 extra-source-files:
     README.md
 
 source-repository head
-    type: git
-    location: https://github.com/NorfairKing/validity
+  type: git
+  location: https://github.com/NorfairKing/validity
 
 library
-    exposed-modules:
-        Test.Validity.Binary
-    build-depends:
-        base >=4.9 && <=5,
-        QuickCheck -any,
-        binary >=0.5 && <0.9,
-        deepseq >=1.4 && <1.5,
-        genvalidity >=0.4 && <0.5,
-        genvalidity-hspec >=0.5 && <0.6,
-        hspec -any
-    default-language: Haskell2010
-    hs-source-dirs: src/
-    ghc-options: -Wall
+  hs-source-dirs:
+      src/
+  ghc-options: -Wall
+  build-depends:
+      QuickCheck
+    , base >=4.9 && <=5
+    , binary
+    , deepseq
+    , genvalidity >=0.5 && <0.6
+    , genvalidity-hspec >=0.6 && <0.7
+    , hspec
+  exposed-modules:
+      Test.Validity.Binary
+  other-modules:
+      Paths_genvalidity_hspec_binary
+  default-language: Haskell2010
 
 test-suite genvalidity-hspec-binary-doctests
-    type: exitcode-stdio-1.0
-    main-is: DocTest.hs
-    build-depends:
-        base -any,
-        doctest >=0.11 && <0.12,
-        genvalidity-hspec-binary -any
-    default-language: Haskell2010
-    hs-source-dirs: test
-    ghc-options: -threaded
+  type: exitcode-stdio-1.0
+  main-is: DocTest.hs
+  hs-source-dirs:
+      doctest
+  ghc-options: -threaded
+  build-depends:
+      base
+    , doctest
+    , genvalidity-hspec-binary
+    , hspec
+  other-modules:
+      Paths_genvalidity_hspec_binary
+  default-language: Haskell2010
+
 test-suite genvalidity-hspec-binary-test
-    type: exitcode-stdio-1.0
-    main-is: Spec.hs
-    build-depends:
-        base -any,
-        genvalidity -any,
-        genvalidity-hspec-binary -any,
-        hspec -any
-    default-language: Haskell2010
-    hs-source-dirs: test/
-    other-modules:
-        Test.Validity.BinarySpec
-    ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall
+  type: exitcode-stdio-1.0
+  main-is: Spec.hs
+  hs-source-dirs:
+      test/
+  ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall
+  build-depends:
+      base
+    , genvalidity
+    , genvalidity-hspec-binary
+    , hspec
+  other-modules:
+      Test.Validity.BinarySpec
+      Paths_genvalidity_hspec_binary
+  default-language: Haskell2010
diff --git a/test/DocTest.hs b/test/DocTest.hs
deleted file mode 100644
--- a/test/DocTest.hs
+++ /dev/null
@@ -1,4 +0,0 @@
-import Test.DocTest
-
-main :: IO ()
-main = doctest ["-isrc", "src", "-XTypeApplications"]
