hsimport 0.2.8 → 0.2.9
raw patch · 5 files changed
+18/−4 lines, 5 filesdep ~lens
Dependency ranges changed: lens
Files
- hsimport.cabal +3/−3
- src/HsImport/ImportChange.hs +1/−1
- tests/Main.hs +1/−0
- tests/goldenFiles/SymbolTest19.hs +7/−0
- tests/inputFiles/SymbolTest19.hs +6/−0
hsimport.cabal view
@@ -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,
src/HsImport/ImportChange.hs view
@@ -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
tests/Main.hs view
@@ -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'" "" ]
+ tests/goldenFiles/SymbolTest19.hs view
@@ -0,0 +1,7 @@+module Blub+ ( blub+ , foo+ , bar+ ) where+import Data.Text (Text)+import Data.List (foldl')
+ tests/inputFiles/SymbolTest19.hs view
@@ -0,0 +1,6 @@+module Blub+ ( blub+ , foo+ , bar+ ) where+import Data.Text (Text)