Skip to content

Warn against GND for IsName #67

Closed
Closed
@nomeata

Description

@nomeata

I just had a hard time debugging a problem here; the reason was that

newtype WordN = WordN Int deriving (Show, Ord, Eq, Typeable, IsName)

did not make WordN 1 and 1 :: Int different names. The proper code would be

newtype WordN = WordN Int deriving (Show, Ord, Eq, Typeable)
instance IsName

I think the documentation of IsName should comment on that, and maybe give the latter as the suggested way to have dedicated names.

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