charTy, stringTy, charTyConName,
- doubleTyCon, doubleDataCon, doubleTy,
+ doubleTyCon, doubleDataCon, doubleTy, doubleTyConName,
- floatTyCon, floatDataCon, floatTy,
+ floatTyCon, floatDataCon, floatTy, floatTyConName,
intTyCon, intDataCon, intTyCon_RDR, intDataCon_RDR, intTyConName,
intTy,
mkTupleTyCon, mkAlgTyCon, tyConName
)
-import BasicTypes ( Arity, RecFlag(..), Boxity(..), isBoxed, StrictnessMark(..),
- Fixity(..), FixityDirection(..), defaultFixity )
+import BasicTypes ( Arity, RecFlag(..), Boxity(..), isBoxed, StrictnessMark(..) )
-import Type ( Type, mkTyConTy, mkTyConApp, mkTyVarTy, mkTyVarTys,
- ThetaType, TyThing(..) )
+import Type ( Type, mkTyConTy, mkTyConApp, mkTyVarTy, mkTyVarTys, TyThing(..) )
import Kind ( mkArrowKinds, liftedTypeKind, ubxTupleKind )
import Unique ( incrUnique, mkTupleTyConUnique,
mkTupleDataConUnique, mkPArrDataConUnique )
-import PrelNames
import Array
import FastString
import Outputable
tycon = mkAlgTyCon name
(mkArrowKinds (map tyVarKind tyvars) liftedTypeKind)
tyvars
- [] -- No context
argvrcs
- (DataTyCon cons is_enum)
- [] -- No record selectors
+ [] -- No stupid theta
+ (DataTyCon cons is_enum)
+ [] -- No record selectors
is_rec
True -- All the wired-in tycons have generics
pcDataConWithFixity declared_infix dc_name tyvars arg_tys tycon
= data_con
where
- data_con = mkDataCon dc_name declared_infix
+ data_con = mkDataCon dc_name declared_infix True {- Vanilla -}
(map (const NotMarkedStrict) arg_tys)
[{- No labelled fields -}]
- tyvars [] [] [] arg_tys tycon
+ tyvars [] [] arg_tys tycon (mkTyVarTys tyvars)
(mkDataConIds bogus_wrap_name wrk_name data_con)
+
mod = nameModule dc_name
wrk_occ = mkDataConWorkerOcc (nameOccName dc_name)
-- represents the type constructor of parallel arrays
--
--- * this must match the definition in `PrelPArr'
+-- * this must match the definition in `PrelPArr'
--
-- NB: Although the constructor is given here, it will not be accessible in
-- user code as it is not in the environment of any compiled module except
-- fake array constructors
--
--- * these constructors are never really used to represent array values;
+-- * these constructors are never really used to represent array values;
-- however, they are very convenient during desugaring (and, in particular,
-- in the pattern matching compiler) to treat array pattern just like
-- yet another constructor pattern