diff --git a/nettle.cabal b/nettle.cabal
--- a/nettle.cabal
+++ b/nettle.cabal
@@ -1,6 +1,6 @@
-Cabal-Version:       3.4
+Cabal-Version:       2.0
 Name:                nettle
-Version:             0.3.1
+Version:             0.3.1.1
 Synopsis:            safe nettle binding
 Description:
   safe binding for the nettle (<http://www.lysator.liu.se/~nisse/nettle/nettle.html>) library.
@@ -26,6 +26,7 @@
   Default: True
 
 Library
+  Default-Language:  Haskell2010
   hs-source-dirs:    src
   Build-Depends:     base >= 4 && < 5
                    , bytestring >= 0.10.8 && < 0.13
@@ -54,6 +55,7 @@
     Extra-libraries: nettle
 
 Test-Suite test-ciphers
+  Default-Language:  Haskell2010
   type:              exitcode-stdio-1.0
   hs-source-dirs:    src/Tests
   Main-Is:           Ciphers.hs
@@ -69,6 +71,7 @@
   ghc-options: -fno-warn-tabs
 
 Test-Suite test-hashes
+  Default-Language:  Haskell2010
   type:              exitcode-stdio-1.0
   hs-source-dirs:    src/Tests
   Main-Is:           Hash.hs
@@ -83,6 +86,7 @@
   ghc-options: -fno-warn-tabs
 
 Test-Suite test-hmac
+  Default-Language:  Haskell2010
   type:              exitcode-stdio-1.0
   hs-source-dirs:    src/Tests
   Main-Is:           HMAC.hs
@@ -97,6 +101,7 @@
   ghc-options: -fno-warn-tabs
 
 Test-Suite test-umac
+  Default-Language:  Haskell2010
   type:              exitcode-stdio-1.0
   hs-source-dirs:    src/Tests
   Main-Is:           UMAC.hs
diff --git a/src/Crypto/Nettle/Ciphers/Internal.hs b/src/Crypto/Nettle/Ciphers/Internal.hs
--- a/src/Crypto/Nettle/Ciphers/Internal.hs
+++ b/src/Crypto/Nettle/Ciphers/Internal.hs
@@ -202,9 +202,9 @@
 	h <- createSecureMem c_gcm_key_size $ \hptr ->
 		c_gcm_set_key hptr (encctxoffset encctxptr) encrypt
 	withSecureMemPtr h $ \hptr -> do
-	ctx <- createSecureMem c_gcm_ctx_size $ \ctxptr ->
+	    ctx <- createSecureMem c_gcm_ctx_size $ \ctxptr ->
 		c_gcm_set_iv ctxptr hptr (fromIntegral $ byteableLength iv) ivptr
-	return (NettleGCM ctx h)
+	    return (NettleGCM ctx h)
 
 -- independent of cipher
 gcm_update
