File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/Language/PureScript/TypeChecker Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -440,9 +440,9 @@ check' val (ForAll ident ty _) = do
440440 val' <- check skVal sk
441441 return $ TypedValue True val' (ForAll ident ty (Just scope))
442442check' val t@ (ConstrainedType constraints ty) = do
443- dictNames <- forM constraints $ \ (Qualified _ (ProperName className), _) -> do
443+ dictNames <- forM constraints $ \ (Qualified mn' (ProperName className), _) -> do
444444 n <- liftCheck freshDictionaryName
445- return $ Ident $ " __dict_" ++ className ++ " _" ++ show n
445+ return $ Ident $ " __dict_" ++ ( maybe " " (( ++ " . " ) . runModuleName) mn') ++ className ++ " _" ++ show n
446446 val' <- withBindingGroupVisible $ withTypeClassDictionaries (zipWith (\ name (className, instanceTy) ->
447447 TypeClassDictionaryInScope name className instanceTy Nothing TCDRegular False ) (map (Qualified Nothing ) dictNames)
448448 constraints) $ check val ty
You can’t perform that action at this time.
0 commit comments