In GHCI, if you run:
import Data.Binary
encode [1]
Everything works smoothly. But, if you then run:
import Data.Vector.Binary
encode [1]
you get an error message:
Overlapping instances for Binary [t0] arising from a use of `encode'
Matching instances:
instance (Data.Vector.Generic.Base.Vector v a, Binary a) => Binary (v a) -- Defined in `Data.Vector.Binary' instance Binary a => Binary [a] -- Defined in `Data.Binary'In the expression: encode [1]
In an equation for `it': it = encode [1]
It seems like GHC thinks my list is a vector type instead of a list. Why is that?