Marronnier
Marronnier

Reputation: 399

Showing Unique keys?

I don't know if here is the right place to ask this question. Anyway, what I want to do is to show Unique keys. Is it possible?

Upvotes: 0

Views: 84

Answers (1)

arrowd
arrowd

Reputation: 34401

If you have Unique record value you can use getBy to get Entity record and show its key.

do
  r <- getBy u
  let s = show $ entityKey r

Upvotes: 1

Related Questions