diff --git a/hw-parser.cabal b/hw-parser.cabal
--- a/hw-parser.cabal
+++ b/hw-parser.cabal
@@ -1,21 +1,18 @@
--- This file has been generated from package.yaml by hpack version 0.18.1.
---
--- see: https://github.com/sol/hpack
+cabal-version:  2.2
 
 name:           hw-parser
-version:        0.1.0.0
+version:        0.1.0.1
 synopsis:       Simple parser support
-description:    Please see README.md
+description:    Simple parser support. Please see README.md
 category:       Data, Parser
 homepage:       http://github.com/haskell-works/hw-parser#readme
 bug-reports:    https://github.com/haskell-works/hw-parser/issues
 author:         John Ky
 maintainer:     newhoggy@gmail.com
-copyright:      2016-2018 John Ky
-license:        BSD3
+copyright:      2016 John Ky
+license:        BSD-3-Clause
 license-file:   LICENSE
 build-type:     Simple
-cabal-version:  >= 1.10
 
 extra-source-files:
     README.md
@@ -24,18 +21,41 @@
   type: git
   location: https://github.com/haskell-works/hw-parser
 
-library
-  hs-source-dirs:
-      src
-  ghc-options: -Wall
-  build-depends:
-      base          >= 4          && < 5
-    , attoparsec    >= 0.13       && < 0.14
-    , bytestring    >= 0.10       && < 0.11
-    , hw-prim       >= 0.4        && < 0.7
-    , text
-  exposed-modules:
-      HaskellWorks.Data.Parser
-  other-modules:
-      Paths_hw_parser
+common base                 { build-depends: base                 >= 4          && < 5      }
+
+common attoparsec           { build-depends: attoparsec           >= 0.13       && < 0.14   }
+common bytestring           { build-depends: bytestring           >= 0.10.6     && < 0.11   }
+common hedgehog             { build-depends: hedgehog             >= 0.5        && < 0.7    }
+common hspec                { build-depends: hspec                >= 2.4        && < 3      }
+common hw-hspec-hedgehog    { build-depends: hw-hspec-hedgehog    >= 0.1.0.4    && < 0.2    }
+common hw-prim              { build-depends: hw-prim              >= 0.6.2.21   && < 0.7    }
+common text                 { build-depends: text                 >= 1.2        && < 1.3    }
+
+common config
   default-language: Haskell2010
+  ghc-options:      -Wall
+
+library
+  import:   base, config
+          , attoparsec
+          , bytestring
+          , hw-prim
+          , text
+  hs-source-dirs:   src
+  exposed-modules:  HaskellWorks.Data.Parser
+  other-modules:    Paths_hw_parser
+  autogen-modules:  Paths_hw_parser
+
+test-suite hw-parser-test
+  import:   base, config
+          , hedgehog
+          , hspec
+          , hw-hspec-hedgehog
+  type:             exitcode-stdio-1.0
+  main-is:          Spec.hs
+  build-depends:    hw-parser
+  hs-source-dirs:   test
+  ghc-options:      -threaded -rtsopts -with-rtsopts=-N
+  build-tools:      hspec-discover
+  other-modules:    Paths_hw_parser
+  autogen-modules:  Paths_hw_parser
diff --git a/test/Spec.hs b/test/Spec.hs
new file mode 100644
--- /dev/null
+++ b/test/Spec.hs
@@ -0,0 +1,1 @@
+{-# OPTIONS_GHC -F -pgmF hspec-discover #-}
