Commit f68d7b33 authored by Simon Peyton Jones's avatar Simon Peyton Jones Committed by Austin Seipp
Browse files

Adding missing test files for #9071

(cherry picked from commit 59b4e6d0)
parent f79b5ab8
{-# LANGUAGE DeriveFunctor #-}
module T9071_2 where
newtype Mu f = Mu (f (Mu f))
newtype K1 a b = K1 a
newtype F1 a = F1 (Mu (K1 a)) deriving Functor
{-# LANGUAGE DeriveFunctor #-}
module T9071 where
import T9071a
newtype K a b = K a
newtype F a = F (Mu (K a)) deriving Functor
[1 of 2] Compiling T9071a ( T9071a.hs, T9071a.o )
[2 of 2] Compiling T9071 ( T9071.hs, T9071.o )
T9071.hs:7:37:
No instance for (Functor K)
arising from the first field of ‘F’ (type ‘Mu (K a)’)
Possible fix:
use a standalone 'deriving instance' declaration,
so you can specify the instance context yourself
When deriving the instance for (Functor F)
{-# LANGUAGE DeriveFunctor #-}
module T9071_2 where
newtype Mu f = Mu (f (Mu f))
newtype K1 a b = K1 a
newtype F1 a = F1 (Mu (K1 a)) deriving Functor
T9071_2.hs:7:40:
No instance for (Functor Mu)
arising from the first field of ‘F1’ (type ‘Mu (K1 a)’)
Possible fix:
use a standalone 'deriving instance' declaration,
so you can specify the instance context yourself
When deriving the instance for (Functor F1)
module T9071a where
newtype Mu f = Mu (f (Mu f))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment