diff --git a/getopt-generics.cabal b/getopt-generics.cabal
--- a/getopt-generics.cabal
+++ b/getopt-generics.cabal
@@ -3,7 +3,7 @@
 -- see: https://github.com/sol/hpack
 
 name:           getopt-generics
-version:        0.11.0.2
+version:        0.11.0.3
 synopsis:       Create command line interfaces with ease
 description:    Create command line interfaces with ease
 category:       Console, System
@@ -49,7 +49,7 @@
       base == 4.*
     , base-compat >= 0.8
     , base-orphans
-    , generics-sop
+    , generics-sop >= 0.1 && < 0.3
     , tagged
   exposed-modules:
       WithCli
@@ -77,7 +77,7 @@
       base == 4.*
     , base-compat >= 0.8
     , base-orphans
-    , generics-sop
+    , generics-sop >= 0.1 && < 0.3
     , tagged
     , hspec >= 2.1.8
     , QuickCheck
diff --git a/src/System/Console/GetOpt/Generics.hs b/src/System/Console/GetOpt/Generics.hs
--- a/src/System/Console/GetOpt/Generics.hs
+++ b/src/System/Console/GetOpt/Generics.hs
@@ -1,6 +1,7 @@
 {-# LANGUAGE ConstraintKinds #-}
 {-# LANGUAGE ScopedTypeVariables #-}
 {-# LANGUAGE ViewPatterns #-}
+{-# LANGUAGE FlexibleContexts #-}
 
 module System.Console.GetOpt.Generics (
   -- * Simple IO API
diff --git a/test/Util.hs b/test/Util.hs
--- a/test/Util.hs
+++ b/test/Util.hs
@@ -1,4 +1,5 @@
 {-# LANGUAGE ConstraintKinds #-}
+{-# LANGUAGE FlexibleContexts #-}
 
 module Util where
 
