2009/8/6 Will Donnelly <will.donne...@gmail.com>:
>
> David:
>
> The issue with using an interface is how it is specified. The options
> seem to be either using HConf's approach, and requiring the user to
> provide the serialization functions, or using a typeclass. If the user
> has to provide the functions in the initial Dyre configuration, that
> reintroduces the entire issue that Dyre was designed to eliminate: now
> programs that aren't long-running enough to need persistent state
> still have to add extra verbosity because they aren't using it. And
> using the typeclass approach is basically indistinguishable from
> simply using Data.Binary, and defining a new instance declaration for
> its 'Binary' typeclass.

The type class could provide an interface for serializing and writing
the state to disk. Instances could choose to use Read/Show, Binary or
whatever they want, or am I missing something?

David

--~--~---------~--~----~------------~-------~--~----~
Yi development mailing list
yi-devel@googlegroups.com
http://groups.google.com/group/yi-devel
-~----------~----~----~----~------~----~------~--~---

Reply via email to