diff --git a/NEWS b/NEWS
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,7 @@
+Changes in 0.5.2
+* Replace deprecated 'rawSystemProgramStdout' call with 'getProgramOutput'
+* Update to Cabal >= 1.23
+
 Changes in 0.5.1
 * @avctrh added Stack support (LTS 8.4)
 
diff --git a/Setup.lhs b/Setup.lhs
--- a/Setup.lhs
+++ b/Setup.lhs
@@ -30,7 +30,7 @@
 > gslBuildInfo lbi = do
 >   (gslconfigProg, _) <- requireProgram verbosity
 >                          gslconfigProgram (withPrograms lbi)
->   let gslconfig = rawSystemProgramStdout verbosity gslconfigProg
+>   let gslconfig = getProgramOutput verbosity gslconfigProg
 > 
 >   cflags <- words `fmap` gslconfig ["--cflags"]
 >   libs <- words `fmap` gslconfig ["--libs"]
diff --git a/gsl-random.cabal b/gsl-random.cabal
--- a/gsl-random.cabal
+++ b/gsl-random.cabal
@@ -1,5 +1,5 @@
 name:            gsl-random
-version:         0.5.1
+version:         0.5.2
 homepage:        http://github.com/patperry/hs-gsl-random
 synopsis:        Bindings the the GSL random number generation facilities.
 description:
@@ -14,12 +14,19 @@
 author:          Patrick Perry,
                  Tracy Wadleigh
 maintainer:      Patrick Perry <patperry@gmail.com>
-cabal-version:   >= 1.8.0
+cabal-version:   >= 1.23
 build-type:      Custom
-tested-with:     GHC == 7.4.2
+tested-with:     GHC == 8.2.1
 
 extra-source-files:     NEWS
 
+source-repository head
+    type:               git
+    location:           git://github.com/patperry/hs-gsl-random.git
+
+custom-setup
+    setup-depends:      Cabal >= 1.23
+
 library
     hs-source-dirs:     lib
     exposed-modules:    GSL.Random.Gen
@@ -30,7 +37,8 @@
     c-sources:          cbits/qrng_extras.c
 
     ghc-options:        -Wall
-    extensions:         DeriveDataTypeable,
+    default-language:   Haskell2010
+    other-extensions:   DeriveDataTypeable,
                         ForeignFunctionInterface
     build-depends:      base   >= 4       && < 5
                       , vector >= 0.7.0.1 && < 0.13.0.0
