diff --git a/lib/Data/IntArray.hs b/lib/Data/IntArray.hs
--- a/lib/Data/IntArray.hs
+++ b/lib/Data/IntArray.hs
@@ -1,3 +1,4 @@
+
 {-# LANGUAGE MagicHash, UnboxedTuples, CPP #-}
 {-# OPTIONS_GHC -funbox-strict-fields #-}
 -----------------------------------------------------------------------------
@@ -39,7 +40,7 @@
 import GHC.ST
 import Foreign( sizeOf )
 
-#if __GLASGOW_HASKELL__ > 762
+#if __GLASGOW_HASKELL__ >= 78
 import GHC.Exts (isTrue#)
 
 isTrue = isTrue#
diff --git a/permutation.cabal b/permutation.cabal
--- a/permutation.cabal
+++ b/permutation.cabal
@@ -1,5 +1,5 @@
 name:            permutation
-version:         0.5.0.1
+version:         0.5.0.2
 homepage:        https://github.com/spacekitteh/permutation
 synopsis:        A library for permutations and combinations.
 description:
