on master help sign in
cosmetic: switch to normal if expression
bdf38e0Evan Czaplicki
src/Canonicalize/Setup.hs+3−3
@@ -151,11 +151,11 @@ valueToPatches region moduleName interface value =
151 |> Result.err
151 |> Result.err
152 in
152 in
153 case value of
153 case value of
154− Var.Value x
154+ Var.Value x ->
155− | Map.notMember x (Module.iTypes interface) ->
155+ if Map.notMember x (Module.iTypes interface) then
156 notFound Var.getValues x
156 notFound Var.getValues x
157
157
158− | otherwise ->
158+ else
159 Result.ok [patch Env.Value x]
159 Result.ok [patch Env.Value x]
160
160
161 Var.Alias x ->
161 Var.Alias x ->