 public enum VersionSpecifier {
 	case Exactly(Version)
 }
+
+extension VersionSpecifier: JSONDecodable {
+	public static func fromJSON(JSON: AnyObject) -> Result<VersionSpecifier> {
+		if let specifier = JSON as? String {
+			return Version.fromString(specifier).map { .Exactly($0) }
+		} else {
+			return failure()
+		}
+	}
+}

	public let major: Int
	public let minor: Int
	public let patch: Int
}

public func <(lhs: Version, rhs: Version) -> Bool {

//

import Foundation
import LlamaKit

public struct Dependency {
	public var repository: Repository
