2009/8/6 David Waern <david.wa...@gmail.com>: > 2009/8/6 Will Donnelly <will.donne...@gmail.com>: > 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?
That was badly explained. I mean something like this: class Serialize a where read :: FilePath -> IO a write :: a -> FilePath -> IO () The user then writes an instance for his main state type using Binary or Read/Show. David --~--~---------~--~----~------------~-------~--~----~ Yi development mailing list yi-devel@googlegroups.com http://groups.google.com/group/yi-devel -~----------~----~----~----~------~----~------~--~---