Skip to content

Commit be6f52f

Browse files
committed
Fixes inconsistent error report comparing with elm
Fixes #113 and fixes #114
1 parent b1ec70e commit be6f52f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Compiler/Type/Constrain/Module.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ constrainDecls decls finalConstraint =
5353
constrainDeclsHelp decls finalConstraint identity
5454

5555

56-
constrainDeclsHelp : Can.Decls -> Type.Constraint -> (IO Type.Constraint -> IO Type.Constraint) -> IO Type.Constraint
56+
constrainDeclsHelp : Can.Decls -> Constraint -> (IO Constraint -> IO Constraint) -> IO Constraint
5757
constrainDeclsHelp decls finalConstraint cont =
5858
case decls of
5959
Can.Declare def otherDecls ->

src/System/TypeCheck/IO.elm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ foldrMHelp callback ( list, result ) =
137137

138138
foldM : (b -> a -> IO b) -> b -> List a -> IO b
139139
foldM f b list =
140-
loop (foldMHelp f) ( List.reverse list, b )
140+
loop (foldMHelp f) ( list, b )
141141

142142

143143
foldMHelp : (b -> a -> IO b) -> ( List a, b ) -> IO (Step ( List a, b ) b)

0 commit comments

Comments
 (0)