We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9010d98 commit 7873a98Copy full SHA for 7873a98
src/Language/PureScript/TypeChecker/Types.hs
@@ -238,7 +238,7 @@ entails moduleName context goal@(className, ty) = do
238
return $ Just dict
239
mkDictionary :: Qualified Ident -> Maybe [Value] -> Value
240
mkDictionary fnName Nothing = Var fnName
241
- mkDictionary fnName (Just dicts) = foldr (flip App) (Var fnName) dicts
+ mkDictionary fnName (Just dicts) = foldl App (Var fnName) dicts
242
filterModule :: TypeClassDictionaryInScope -> Bool
243
filterModule (TypeClassDictionaryInScope { tcdName = Qualified (Just mn) _ }) | mn == moduleName = True
244
filterModule (TypeClassDictionaryInScope { tcdName = Qualified Nothing _ }) = True
0 commit comments