tweag / servant-template

A modern template for a Servant
MIT License
53 stars 8 forks source link

ensure we never create a content with a duplicated tag #24

Closed marcosh closed 2 years ago

marcosh commented 2 years ago

I realised it was possible to create a content with a duplicated tag (thanks to Quickstrom...).

To avoid this I decided to still use a List to represent tags but to use a smart constructor to remove duplicates using the nub function.

I chose not to use Set mainly because I would have lost the ability to have a Functor and Traversable instance for Content