@@ -145,7 +145,7 @@ typeClassMemberToDictionaryAccessor :: ModuleName -> ProperName -> [String] -> D
145145typeClassMemberToDictionaryAccessor mn name args (TypeDeclaration ident ty) =
146146 ExternDeclaration TypeClassAccessorImport ident
147147 (Just (JSFunction (Just $ identToJs ident) ["dict"] (JSBlock [JSReturn (JSIndexer (JSStringLiteral (identToProperty ident)) (JSVar "dict"))])))
148− (quantify (ConstrainedType [(Qualified (Just mn) name, map TypeVar args)] ty))
148+ (moveQuantifiersToFront (quantify (ConstrainedType [(Qualified (Just mn) name, map TypeVar args)] ty)))
149149typeClassMemberToDictionaryAccessor mn name args (PositionedDeclaration pos d) =
150150 PositionedDeclaration pos $ typeClassMemberToDictionaryAccessor mn name args d
151151typeClassMemberToDictionaryAccessor _ _ _ _ = error "Invalid declaration in type class definition"
@@ -169,7 +169,7 @@ typeInstanceDictionaryDeclaration name mn deps className tys decls =
169169 case mapMaybe declName tyDecls \\ mapMaybe declName decls of
170170 x : _ -> throwError $ mkErrorStack ("Member '" ++ show x ++ "' has not been implemented") Nothing
171171 [] -> do
172−
172+
173173 let instanceTys = map memberToNameAndType tyDecls
174174
175175 -- Replace the type arguments with the appropriate types in the member types
@@ -192,16 +192,16 @@ typeInstanceDictionaryDeclaration name mn deps className tys decls =
192192 dictTy = foldl TypeApp (TypeConstructor className) tys
193193 constrainedTy = quantify (if null deps then function unit dictTy else ConstrainedType deps dictTy)
194194 dict = if null deps then Abs (Left (Ident "_")) (ObjectLiteral memberNames') else ObjectLiteral memberNames'
195−
195+
196196 return $ ValueDeclaration name TypeInstanceDictionaryValue [] Nothing (TypedValue True dict constrainedTy)
197−
197+
198198 where
199199
200200 declName :: Declaration -> Maybe Ident
201201 declName (PositionedDeclaration _ d) = declName d
202202 declName (ValueDeclaration ident _ _ _ _) = Just ident
203203 declName (TypeDeclaration ident _) = Just ident
204− declName _ = Nothing
204+ declName _ = Nothing
205205
206206 memberToNameAndValue :: [(Ident, Type)] -> Declaration -> Desugar (Ident, Value)
207207 memberToNameAndValue tys' d@(ValueDeclaration ident _ _ _ _) = do