[Haskell-cafe] Re: could we get a Data instance for
Data.Text.Text?
Nicolas Pouillard
nicolas.pouillard at gmail.com
Sat Jan 23 18:19:25 EST 2010
On Sat, 23 Jan 2010 16:57:49 -0600, Jeremy Shaw <jeremy at n-heptane.com> wrote:
> On Sat, Jan 23, 2010 at 7:57 AM, Neil Mitchell <ndmitchell at gmail.com>wrote:
>
>
> > No, that's definitely not correct, or even remotely scalable as we
> > increase the number of abstract types in disparate packages.
>
>
> Yes.. happstack is facing another aspect of this scalability issue as well.
> We have a class, Serialize, which is used to serialize and deserialize data.
> It builds on the binary library, but adds the ability to version your data
> types and migrate data from older versions to newer versions.
>
> This has a serious scalability issue though, because it requires that each
> type a user might want to serialize has a Serialize instance.
>
> So do we:
[..]
> Any other suggestions?
4. Write a new package:
* serialize-text
* text-instances (which would be a place holder for more instances)
I would go for trying solution 2. and otherwise solution 4.
--
Nicolas Pouillard
http://nicolaspouillard.fr
More information about the Haskell-Cafe
mailing list