summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
33a6d46)
test -fgenerics before generating the generic datatype.
-import CmdLineOpts ( opt_GlasgowExts )
+import CmdLineOpts ( opt_Generics )
import RnHsSyn ( RenamedHsExpr )
import HsSyn ( HsExpr(..), InPat(..), mkSimpleMatch )
import RnHsSyn ( RenamedHsExpr )
import HsSyn ( HsExpr(..), InPat(..), mkSimpleMatch )
-- for the fromT and toT conversion functions.
mkTyConGenInfo tycon from_name to_name
-- for the fromT and toT conversion functions.
mkTyConGenInfo tycon from_name to_name
- | True -- not opt_GlasgowExts
= Nothing
| null datacons -- Abstractly imported types don't have
= Nothing
| null datacons -- Abstractly imported types don't have