Open phadej opened 5 years ago
instance (Typeable1 f, Typeable1 g) => Typeable1 (Product f g) where
typeOf1 _ = mkTyConApp
(mkTyCon3 "transformers" "Data.Functor.Product" "Product")
[typeOf1 (undefined :: f ()), typeOf1 (undefined :: f ())]
instance (Typeable1 f, Typeable1 g) => Typeable1 (Compose f g) where
typeOf1 _ = mkTyConApp
(mkTyCon3 "transformers" "Data.Functor.Compose" "Compose")
[typeOf1 (undefined :: f ()), typeOf1 (undefined :: f ())]
seems to work, but not sure how correct it is. At least package name have to be #if
ed, I guess.
Pull requests are welcome, if you're willing to figure out the right combination of CPP to make this work.
Neither
Typeable1 Product
Also with GHC-7.6
transformers-0.5.6.2
usesAutoDeriveTypeable
GHC >=7.8 https://hackage.haskell.org/package/transformers-0.5.6.2/src/legacy/pre711/Data/Functor/Compose.hsOh, is it because