From 84ea5248e3ed187abb81bd0b921018ec7b6bd12b Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Wed, 14 Oct 2015 10:49:05 -0400 Subject: [PATCH] Unroll does not need to be indirect. --- prototype/Doubt/Cofree.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prototype/Doubt/Cofree.swift b/prototype/Doubt/Cofree.swift index ec53a82c9..28b56ecea 100644 --- a/prototype/Doubt/Cofree.swift +++ b/prototype/Doubt/Cofree.swift @@ -6,7 +6,7 @@ /// /// This type is dual to `Free`. Where `Free` is inhabited by syntax trees where some terms are replaced with `B`s, `Cofree` is inhabited by syntax trees where all terms are annotated with `B`s. In Doubt, this allows us to e.g. annotate terms with source range information, categorization, etc. public enum Cofree { - indirect case Unroll(B, () -> Syntax) + case Unroll(B, () -> Syntax) public var unwrap: Syntax { switch self {