Skip to content
Snippets Groups Projects
deriving-via-fail4.stderr 878 B
Newer Older
Ryan Scott's avatar
Ryan Scott committed

deriving-via-fail4.hs:15:12: error:
Ryan Scott's avatar
Ryan Scott committed
    • Couldn't match representation of type ‘Int’ with that of ‘Char’
        arising from the coercion of the method ‘==’
          from type ‘Char -> Char -> Bool’ to type ‘F1 -> F1 -> Bool’
    • When deriving the instance for (Eq F1)

deriving-via-fail4.hs:18:13: error:
    • Couldn't match representation of type ‘a1’ with that of ‘a2’
Ryan Scott's avatar
Ryan Scott committed
        arising from the coercion of the method ‘c’
          from type ‘a -> a -> Bool’ to type ‘a -> F2 a1 -> Bool’
      ‘a1’ is a rigid type variable bound by
Ryan Scott's avatar
Ryan Scott committed
        the deriving clause for ‘C a (F2 a1)’
        at deriving-via-fail4.hs:18:13-15
      ‘a2’ is a rigid type variable bound by
Ryan Scott's avatar
Ryan Scott committed
        the deriving clause for ‘C a (F2 a1)’
        at deriving-via-fail4.hs:18:13-15
Ryan Scott's avatar
Ryan Scott committed
    • When deriving the instance for (C a (F2 a1))