git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix #725
commitb70e56c050c124a48b2e0f08272e868eceeb880c authorPhil Freeman <paf31@cantab.net> dateSun 23 Nov 2014, 20:26 (12 years ago) parent2a95e77
1 file changed+1−1
src/Language/PureScript/CodeGen/Externs.hs+1−1
src/Language/PureScript/CodeGen/Externs.hs+1−1
@@ -97,7 +97,7 @@ moduleToPs (Module moduleName ds (Just exts)) env = intercalate "\n" . execWrite
9797
9898 exportToPs (TypeInstanceRef ident) = do
9999 let TypeClassDictionaryInScope { tcdClassName = className, tcdInstanceTypes = tys, tcdDependencies = deps} =
100− fromMaybe (error $ "Type class instance has no dictionary in exportToPs") . find ((== Qualified (Just moduleName) ident) . tcdName) $ M.elems $ typeClassDictionaries env
100+ fromMaybe (error $ "Type class instance has no dictionary in exportToPs") . find (\tcd -> tcdName tcd == Qualified (Just moduleName) ident && tcdType tcd == TCDRegular) $ M.elems $ typeClassDictionaries env
101101 let constraintsText = case fromMaybe [] deps of
102102 [] -> ""
103103 cs -> "(" ++ intercalate ", " (map (\(pn, tys') -> show pn ++ " " ++ unwords (map prettyPrintTypeAtom tys')) cs) ++ ") => "