X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Ftypes%2FTyCon.lhs;h=189b0da3a8b90a65da9a950addeea627119dda24;hb=8295d9ca0f3e72e545b35c43a4a2e1e4ec582fb6;hp=efd7d023c65fd9aa9bd0e73e2acd7f614517361e;hpb=083cab4adde4c12fae5eadb10a55b0aabcefe7f5;p=ghc-hetmet.git diff --git a/ghc/compiler/types/TyCon.lhs b/ghc/compiler/types/TyCon.lhs index efd7d02..189b0da 100644 --- a/ghc/compiler/types/TyCon.lhs +++ b/ghc/compiler/types/TyCon.lhs @@ -248,11 +248,11 @@ isAlgTyCon (AlgTyCon {}) = True isAlgTyCon (TupleTyCon {}) = True isAlgTyCon other = False --- isDataTyCon returns False for @newtype@. +-- isDataTyCon returns False for @newtype@ and for unboxed tuples isDataTyCon (AlgTyCon {algTyConFlavour = new_or_data}) = case new_or_data of NewType -> False other -> True -isDataTyCon (TupleTyCon {}) = True -- is an unboxed tuple a datatype? +isDataTyCon (TupleTyCon {tyConBoxed = True}) = True isDataTyCon other = False isNewTyCon (AlgTyCon {algTyConFlavour = NewType}) = True