Skip to content

Are Columnable over constrained ? #154

@maxigit

Description

@maxigit

For example, functions like add have a Columnable constraint.
This makes sense but at the same time every single constructor of Expr has also a Columnable constraint, so even if the Columnable proof is hidden in GADT, Expr a implies Columnable a.
In a ideal world we don't need Columnable a => Expr a unless we remove it from the Expr constructors altogether. That way Expr could live outside of a DataFrame and possibly have a Functor and Applicative instance.
And when Columnable is required it can be added a constraint as it is already the case.

Just a thought.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions