mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-09-11 16:16:09 +03:00
26 lines
769 B
Plaintext
26 lines
769 B
Plaintext
-- TYPE MISMATCH ---------- ./No_WithModuleContext_Without_WithModuleVisitor.elm
|
|
|
|
This function cannot handle the argument sent through the (|>) pipe:
|
|
|
|
12| Rule.newProjectRuleSchema "No_WithModuleContext_Without_WithModuleVisitor" ()
|
|
13|> |> Rule.withModuleContext
|
|
14|> { fromProjectToModule = \_ _ () -> ()
|
|
15|> , fromModuleToProject = \_ _ () -> ()
|
|
16|> , foldProjectContexts = \_ () -> ()
|
|
17|> }
|
|
|
|
The argument is:
|
|
|
|
Rule.ProjectRuleSchema
|
|
{ canAddModuleVisitor : (), withModuleContext : Rule.Forbidden }
|
|
()
|
|
()
|
|
|
|
But (|>) is piping it to a function that expects:
|
|
|
|
Rule.ProjectRuleSchema
|
|
{ canAddModuleVisitor : (), withModuleContext : Rule.Required }
|
|
()
|
|
()
|
|
|