Skip to content

Instantly share code, notes, and snippets.

@JustinChristensen
Created April 5, 2021 04:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JustinChristensen/bcffe268fa71664e820db62dd2a47a37 to your computer and use it in GitHub Desktop.
Save JustinChristensen/bcffe268fa71664e820db62dd2a47a37 to your computer and use it in GitHub Desktop.
λ: 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