Skip to content

deriving Inhabited ignores field defaults #9463

@Kha

Description

@Kha
structure Config where
  iota := true
deriving Inhabited

#eval (default : Config).iota  -- false

I am very surprised this has not led to more bugs in our codebase.

Metadata

Metadata

Assignees

Labels

P-highWe will work on this issuebugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions