Skip to content

Read instance #20

Description

@chris-martin

Ran into wanting this because I guess Persistent wants a Read instance if you incorporate something into a primary key.

instance (KnownNat a, KnownNat b, a <= b) => Read (Closed a b) where
  readPrec = maybe pfail pure . closed =<< readPrec @Integer

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