File tree 2 files changed +4
-0
lines changed
src/Development/IDE/Plugin
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -424,6 +424,8 @@ extractNotInScopeName x
424
424
= Just $ NotInScopeDataConstructor name
425
425
| Just [name] <- matchRegex x " ot in scope: type constructor or class [^‘]*‘([^’]*)’"
426
426
= Just $ NotInScopeTypeConstructorOrClass name
427
+ | Just [name] <- matchRegex x " ot in scope: \\ (([^‘ ]+)\\ )"
428
+ = Just $ NotInScopeThing name
427
429
| Just [name] <- matchRegex x " ot in scope: ([^‘ ]+)"
428
430
= Just $ NotInScopeThing name
429
431
| Just [name] <- matchRegex x " ot in scope:[^‘]*‘([^’]*)’"
Original file line number Diff line number Diff line change @@ -966,6 +966,8 @@ suggestImportTests = testGroup "suggest import actions"
966
966
, test True [] " f :: Typeable a => a" [" f = undefined" ] " import Data.Typeable (Typeable)"
967
967
, test True [] " f = pack" [] " import Data.Text (pack)"
968
968
, test True [] " f :: Text" [" f = undefined" ] " import Data.Text (Text)"
969
+ , test True [] " f = [] & id" [] " import Data.Function ((&))"
970
+ , test True [] " f = (&) [] id" [] " import Data.Function ((&))"
969
971
]
970
972
]
971
973
where
You can’t perform that action at this time.
0 commit comments