diff --git a/src/Env/ClassEnv.hs b/src/Env/ClassEnv.hs index c8f59aabb7f8f4f3f17966a45048a2f0d54d78ef..cb0280cf67308f54b0602e034e3f5f73c1f44344 100644 --- a/src/Env/ClassEnv.hs +++ b/src/Env/ClassEnv.hs @@ -651,7 +651,11 @@ initFreshVar = 1 -- not zero! -- ---------------------------------------------------------------------------- -- |returns a type expression representing the type of the dictionary for --- the given class (here the canonicalized name must be given) +-- the given class (here the canonicalized name must be given). Note that +-- the resulting type expression is completely unexpanded (using +-- dictionary types and the original method signatures). It follows that +-- this function can only be used for classes from the source file being compiled, +-- not for classes that are imported. dictTypeExpr :: ClassEnv -> QualIdent -> TypeExpr dictTypeExpr cEnv cls = case null (scsTypes ++ methodTypes) of