Created
January 12, 2015 18:18
-
-
Save sigsergv/0bf483bec1e52d265530 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
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