freckle / bcp47

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

Fix arbitrary instances #3

Closed eborden closed 5 years ago

eborden commented 5 years ago

Arbitrary instance were generating garbage. Instead arbitrary instances should produce valid language tags. That is validated by converting arbitrary tags to text and parsing them back to the same representation.

Addresses https://github.com/freckle/bcp47/issues/2

eborden commented 5 years ago

Will merge after https://github.com/freckle/bcp47/pull/1, since this branches off that.