Speed up removeErrorPhantomTypeFromVisitor

This commit is contained in:
Jeroen Engels 2022-09-17 19:03:56 +02:00
parent d43f3b5a17
commit 32b38f3e82

View File

@ -1935,7 +1935,7 @@ withDataExtractor dataExtractor (ProjectRuleSchema schema) =
removeErrorPhantomTypeFromVisitor : (element -> projectContext -> ( List (Error b), projectContext )) -> (element -> projectContext -> ( List (Error {}), projectContext ))
removeErrorPhantomTypeFromVisitor function element projectContext =
function element projectContext
|> Tuple.mapFirst (List.map removeErrorPhantomType)
|> Tuple.mapFirst (ListExtra.orderIndependentMap removeErrorPhantomType)
{-| Allows the rule to have access to the context of the modules imported by the