From 59dd626361e2a86b939d1f9db95cbfe495a2d525 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Wed, 14 Oct 2015 09:43:51 -0400 Subject: [PATCH] Add a Syntax to Cofree. --- prototype/Doubt/Cofree.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prototype/Doubt/Cofree.swift b/prototype/Doubt/Cofree.swift index 864ac8bd5..1899932a2 100644 --- a/prototype/Doubt/Cofree.swift +++ b/prototype/Doubt/Cofree.swift @@ -1,7 +1,7 @@ // Copyright © 2015 GitHub. All rights reserved. -public enum Cofree { - case Unroll(B) +public enum Cofree { + case Unroll(B, Syntax) } @@ -10,7 +10,7 @@ public enum Cofree { extension Cofree { var extract: B { switch self { - case let .Unroll(b): + case let .Unroll(b, _): return b } }