Changes between Version 9 and Version 10 of Annotations


Ignore:
Timestamp:
Oct 14, 2008 7:53:57 AM (6 years ago)
Author:
simonpj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Annotations

    v9 v10  
    207207This doesn't require any more packages (we could even remove the ByteString usages here) and it does allow use of multiple different serialization libraries for annotations (should that be desirable). However, this makes the API a bit unfriendlier; and (more important) doesn't enforce that the serializer and deserializer for a particular bit of data should be coherent.  For example, the following could easily happen: 
    208208 * A plugin uses binary-2.1 to serialise stuff into Foo.hi 
    209  * A GHC api client uses binary-3.0 to deserialise it 
    210         (probably without realising that they are using the "wrong" Binary) 
     209 * A GHC api client uses binary-3.0 to deserialise it (probably without realising that they are using the "wrong" Binary) 
    211210 
    212211Result: extreme broken-ness at run time (not compile time).