@@ -47,8 +47,11 @@ compile user projectName interfaces source =
47 let body = (Module.body canonicalModule) { Module.types = types }
47 let body = (Module.body canonicalModule) { Module.types = types }
49 case CheckMatch.checkBody interfaces body of
49 case CheckMatch.checkBody interfaces body of
50+ Left (A.A r matchError) ->
50− Left (A.A r matchError) -> Result.throw r (Error.CheckMatch matchError)
51+ Result.throw r (Error.CheckMatch matchError)
53+ Right matchWarnings ->
51− Right matchWarnings -> Result.addWarnings (map (A.map Warning.MatchWarning) matchWarnings) (return ())
54+ Result.addWarnings (map (A.map Warning.MatchWarning) matchWarnings) (return ())
53 return $ canonicalModule { Module.body = body }
56 return $ canonicalModule { Module.body = body }