File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
src/Development/IDE/Plugin Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -424,6 +424,8 @@ extractNotInScopeName x
424424 = Just $ NotInScopeDataConstructor name
425425 | Just [name] <- matchRegex x " ot in scope: type constructor or class [^‘]*‘([^’]*)’"
426426 = Just $ NotInScopeTypeConstructorOrClass name
427+ | Just [name] <- matchRegex x " ot in scope: \\ (([^‘ ]+)\\ )"
428+ = Just $ NotInScopeThing name
427429 | Just [name] <- matchRegex x " ot in scope: ([^‘ ]+)"
428430 = Just $ NotInScopeThing name
429431 | 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"
966966 , test True [] " f :: Typeable a => a" [" f = undefined" ] " import Data.Typeable (Typeable)"
967967 , test True [] " f = pack" [] " import Data.Text (pack)"
968968 , 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 ((&))"
969971 ]
970972 ]
971973 where
You can’t perform that action at this time.
0 commit comments