 //
 
 import Foundation
+import LlamaKit
 
 public struct Dependency {
 	public var repository: Repository

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

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

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()
		}
	}
}
