Derive GHC Generic.

I was unable to derive Generic1 for the annotated syntax tree. Maybe someone else can do that.