     }
 }
 
-public class EventColorArchiver: NSObject, NSCoding, Archiver {
+public class EventColorCoder: NSObject, NSCoding, CodingType {
 
     public let value: Event.Color
 


import Foundation
import YapDatabase
import YapDatabaseExtensions
import TaylorSource


}

public func events(byColor: Bool = false, mappingBlock: YapDB.FetchConfiguration.MappingsConfigurationBlock? = .None) -> Configuration<Event> {
    return Configuration(fetch: events(byColor), itemMapper: Event.decode)
}

public func eventsWithColor(color: Event.Color, byColor: Bool = false) -> YapDB.Fetch {

    let filtering: YapDB.Filter.Filtering = .ByObject({ (_, group, collection, key, object) -> Bool in
        if let event = Event.decode(object) {
            return event.color == color
        }
        return false
