I am trying to derive a Typeable instance for (':)
I am using DataKinds and [*].
I have TypeOperators, StandaloneDeriving and PolyKinds enabled
I cannot derive an instance of typeable
I have tried
deriving instance Typeable (':)
and
deriving instance Typeable ':
and
deriving instance Typeable ((':))
but they all get parse errors.
I know that if I write
data List a = Cons a (List a) | Empty
deriving instance Typeable (Cons)
I get the expected outcome but I do not wish to rewrite my existing code to use a custom list type.
'[], but not for':this way. For anyone else who wants to try this, you'll need DataKinds, PolyKinds, DeriveDataTypeable, and StandaloneDeriving. - crockeea