Skip to content

Instantly share code, notes, and snippets.

@sigsergv
Created January 12, 2015 18:18
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 sigsergv/0bf483bec1e52d265530 to your computer and use it in GitHub Desktop.
Save sigsergv/0bf483bec1e52d265530 to your computer and use it in GitHub Desktop.
Prelude> x
[]
Prelude> y
[]
Prelude> x == y
<interactive>:54:1:
No instance for (Num [t0]) arising from a use of ‘x’
In the first argument of ‘(==)’, namely ‘x’
In the expression: x == y
In an equation for ‘it’: it = x == y
<interactive>:54:3:
No instance for (Eq t0) arising from a use of ‘==’
The type variable ‘t0’ is ambiguous
Note: there are several potential instances:
instance Eq a => Eq (GHC.Real.Ratio a) -- Defined in ‘GHC.Real’
instance Eq a => Eq (Control.Applicative.ZipList a)
-- Defined in ‘Control.Applicative’
instance Eq Integer -- Defined in ‘integer-gmp:GHC.Integer.Type’
...plus 24 others
In the expression: x == y
In an equation for ‘it’: it = x == y
<interactive>:54:6:
No instance for (Num t0) arising from a use of ‘y’
The type variable ‘t0’ is ambiguous
Note: there are several potential instances:
instance Num Double -- Defined in ‘GHC.Float’
instance Num Float -- Defined in ‘GHC.Float’
instance Integral a => Num (GHC.Real.Ratio a)
-- Defined in ‘GHC.Real’
...plus three others
In the second argument of ‘(==)’, namely ‘y’
In the expression: x == y
In an equation for ‘it’: it = x == y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment