diff --git a/src/Language/Lexer/Tlex/Pipeline/Pattern2Nfa.hs b/src/Language/Lexer/Tlex/Pipeline/Pattern2Nfa.hs
--- a/src/Language/Lexer/Tlex/Pipeline/Pattern2Nfa.hs
+++ b/src/Language/Lexer/Tlex/Pipeline/Pattern2Nfa.hs
@@ -23,7 +23,7 @@
                 let (isStraight, es) = SymEnumSet.toEnumSet s
                 NFA.NFAStateTrans
                     { NFA.nstTransIsStraight = isStraight
-                    , NFA.nstTransRange = EnumSet.unEnumSet es
+                    , NFA.nstTransRange = EnumSet.enumSetToIntSet es
                     , NFA.nstTransNextState = e
                     }
         p1 Pattern.:^: p2 -> do
diff --git a/tlex-core.cabal b/tlex-core.cabal
--- a/tlex-core.cabal
+++ b/tlex-core.cabal
@@ -2,7 +2,7 @@
 build-type:          Custom
 
 name:                tlex-core
-version:             0.3.0.0
+version:             0.4.0.0
 license:             Apache-2.0 OR MPL-2.0
 license-file:        LICENSE
 copyright:           (c) 2021 Mizunashi Mana
@@ -89,15 +89,15 @@
             -dcore-lint
 
     build-depends:
-        base                 >= 4.12.0  && < 4.15,
+        base                 >= 4.12.0  && < 5,
 
         -- project depends
-        array                >= 0.5.3   && < 0.6,
-        containers           >= 0.6.0   && < 0.7,
-        hashable             >= 1.3.0   && < 1.4,
-        transformers         >= 0.5.6   && < 0.6,
-        unordered-containers >= 0.2.13  && < 0.3,
-        enummapset-th        >= 0.6.0   && < 0.7,
+        array                >= 0.5.3   && < 1,
+        containers           >= 0.6.0   && < 1,
+        hashable             >= 1.3.0   && < 2,
+        transformers         >= 0.5.6   && < 1,
+        unordered-containers >= 0.2.13  && < 1,
+        enummapset           >= 0.7.1   && < 1,
 
     autogen-modules:
         Paths_tlex_core
@@ -106,9 +106,9 @@
 
 custom-setup
     setup-depends:
-        base,
-        Cabal,
-        cabal-doctest,
+        base          >= 4.12.0 && < 5,
+        Cabal         >= 3.6    && < 4,
+        cabal-doctest >= 1.0.9  && < 2,
 
 library
     import:
