Skip to content

Using Data.Convertible.Base.convert directly does not compile #14

@MHova

Description

@MHova

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions