diff options
Diffstat (limited to 'compiler/codeGen')
| -rw-r--r-- | compiler/codeGen/ClosureInfo.lhs | 7 | ||||
| -rw-r--r-- | compiler/codeGen/StgCmmClosure.hs | 6 | 
2 files changed, 13 insertions, 0 deletions
diff --git a/compiler/codeGen/ClosureInfo.lhs b/compiler/codeGen/ClosureInfo.lhs index 34746984c2..fd27684732 100644 --- a/compiler/codeGen/ClosureInfo.lhs +++ b/compiler/codeGen/ClosureInfo.lhs @@ -1097,8 +1097,15 @@ getTyDescription ty        FunTy _ res      	     -> '-' : '>' : fun_result res        TyConApp tycon _ 	     -> getOccString tycon        ForAllTy _ ty          -> getTyDescription ty +      LitTy n                -> getTyLitDescription n      }    where      fun_result (FunTy _ res) = '>' : fun_result res      fun_result other	     = getTyDescription other + + +getTyLitDescription :: TyLit -> String +getTyLitDescription l = +  case l of +    NumberTyLit n -> show n  \end{code} diff --git a/compiler/codeGen/StgCmmClosure.hs b/compiler/codeGen/StgCmmClosure.hs index 5c0741a65e..7789ae865b 100644 --- a/compiler/codeGen/StgCmmClosure.hs +++ b/compiler/codeGen/StgCmmClosure.hs @@ -864,11 +864,17 @@ getTyDescription ty        FunTy _ res      	     -> '-' : '>' : fun_result res        TyConApp tycon _ 	     -> getOccString tycon        ForAllTy _ ty          -> getTyDescription ty +      LitTy n                -> getTyLitDescription n      }    where      fun_result (FunTy _ res) = '>' : fun_result res      fun_result other	     = getTyDescription other +getTyLitDescription :: TyLit -> String +getTyLitDescription l = +  case l of +    NumberTyLit n -> show n +  --------------------------------------  --   CmmInfoTable-related things  --------------------------------------  | 
