From d43851fcc610fd2c01e8e4770c243a69b6c10dfd Mon Sep 17 00:00:00 2001 From: simonmar Date: Fri, 30 Jul 1999 11:26:09 +0000 Subject: [PATCH] [project @ 1999-07-30 11:26:09 by simonmar] typePrimRep should work on the repType, avoiding foralls etc. --- ghc/compiler/types/Type.lhs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghc/compiler/types/Type.lhs b/ghc/compiler/types/Type.lhs index 8271ce3..ccd8af7 100644 --- a/ghc/compiler/types/Type.lhs +++ b/ghc/compiler/types/Type.lhs @@ -872,7 +872,7 @@ isNewType ty = case splitTyConApp_maybe ty of other -> False typePrimRep :: Type -> PrimRep -typePrimRep ty = case splitTyConApp_maybe ty of +typePrimRep ty = case splitTyConApp_maybe (repType ty) of Just (tc, ty_args) -> tyConPrimRep tc other -> PtrRep \end{code} -- 1.7.10.4