freckle / bcp47

BCP-47 for Haskell
https://freckle.github.io/bcp47/
2 stars 1 forks source link

Add To/FromJSON instances #5

Closed cdparks closed 5 years ago

cdparks commented 5 years ago

Forgot about these the other day. While I'm here, can anyone think of any other useful instances? Num (jk)?

cdparks commented 5 years ago

Ok, I added a Read instance (gah) because persistent requires it if you wanna use a type as an element of a composite primary key (which I very much do).

Also added Hashable and PathPiece. To[Typed]Content seems like overkill to me, so we can add it later.