Created
April 5, 2021 04:43
-
-
Save JustinChristensen/bcffe268fa71664e820db62dd2a47a37 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
λ: data Bar a; data Foo t a = Foo (t (Bar a)) | |
λ: :set -XStandaloneDeriving | |
λ: instance (Show t, Show a) => Show (Foo t a) | |
<interactive>:6:40: error: | |
• Expected kind ‘* -> *’, but ‘t’ has kind ‘*’ | |
• In the first argument of ‘Foo’, namely ‘t’ | |
In the first argument of ‘Show’, namely ‘(Foo t a)’ | |
In the instance declaration for ‘Show (Foo t a)’ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment