I was using the convert from import Data.Convertible.Base (convert). The compiler kept complaining about the lack of suitable Convertible instances for types that definitely did have Convertible instances (such as instance Convertible Char Int).
I finally figured out that I had to instead use import Data.Convertible (convert). But this is baffling to me because Data.Convertible just re-exports the stuff from Data.Convertible.Base. Can anyone explain why this happens?
I was using the
convertfromimport Data.Convertible.Base (convert). The compiler kept complaining about the lack of suitableConvertibleinstances for types that definitely did haveConvertibleinstances (such asinstance Convertible Char Int).I finally figured out that I had to instead use
import Data.Convertible (convert). But this is baffling to me becauseData.Convertiblejust re-exports the stuff fromData.Convertible.Base. Can anyone explain why this happens?