diff --git a/hsimport.cabal b/hsimport.cabal
--- a/hsimport.cabal
+++ b/hsimport.cabal
@@ -1,5 +1,5 @@
 Name:          hsimport
-Version:       0.2.8
+Version:       0.2.9
 License:       BSD3
 License-file:  LICENSE
 Author:        Daniel Trstenjak
@@ -36,7 +36,7 @@
   Build-Depends: base >= 3 && < 5,
                  cmdargs >= 0.10.5 && < 0.11,
                  haskell-src-exts >= 1.14.0 && < 1.15,
-                 lens >= 3.9.2 && < 4.0,
+                 lens >= 3.9.2 && < 4.1,
                  mtl >= 2.1.2 && < 2.2,
                  text >= 0.11.3.1 && < 1.2,
                  split >= 0.2.2 && < 0.3,
@@ -57,7 +57,7 @@
   Build-Depends: base >= 3 && < 5,
                  cmdargs >= 0.10.5 && < 0.11,
                  haskell-src-exts >= 1.14.0 && < 1.15,
-                 lens >= 3.9.2 && < 4.0,
+                 lens >= 3.9.2 && < 4.1,
                  mtl >= 2.1.2 && < 2.2,
                  text >= 0.11.3.1 && < 1.2,
                  split >= 0.2.2 && < 0.3,
diff --git a/src/HsImport/ImportChange.hs b/src/HsImport/ImportChange.hs
--- a/src/HsImport/ImportChange.hs
+++ b/src/HsImport/ImportChange.hs
@@ -205,7 +205,7 @@
    | isSymbol  = HS.Symbol symbolName
    | otherwise = HS.Ident symbolName
    where
-      isSymbol = any (A.notInClass "a-zA-Z0-9_") symbolName
+      isSymbol = any (A.notInClass "a-zA-Z0-9_'") symbolName
 
 
 srcLineForNewImport :: HS.Module -> Maybe SrcLine
diff --git a/tests/Main.hs b/tests/Main.hs
--- a/tests/Main.hs
+++ b/tests/Main.hs
@@ -66,6 +66,7 @@
    , hsImportTest "SymbolTest16" "Control.Monad" "when" "CM"
    , hsImportTest "SymbolTest17" "Control.Monad" "when" "CM"
    , hsImportTest "SymbolTest18" "Data.Text" "Text" ""
+   , hsImportTest "SymbolTest19" "Data.List" "foldl'" ""
    ]
 
 
diff --git a/tests/goldenFiles/SymbolTest19.hs b/tests/goldenFiles/SymbolTest19.hs
new file mode 100644
--- /dev/null
+++ b/tests/goldenFiles/SymbolTest19.hs
@@ -0,0 +1,7 @@
+module Blub
+   ( blub
+   , foo
+   , bar
+   ) where
+import Data.Text (Text)
+import Data.List (foldl')
diff --git a/tests/inputFiles/SymbolTest19.hs b/tests/inputFiles/SymbolTest19.hs
new file mode 100644
--- /dev/null
+++ b/tests/inputFiles/SymbolTest19.hs
@@ -0,0 +1,6 @@
+module Blub
+   ( blub
+   , foo
+   , bar
+   ) where
+import Data.Text (Text)
