diff --git a/prototype/Doubt/Prism.swift b/prototype/Doubt/Prism.swift index f9d5ecd78..6d55468ec 100644 --- a/prototype/Doubt/Prism.swift +++ b/prototype/Doubt/Prism.swift @@ -1,4 +1,4 @@ -struct Prism { +public struct Prism { let forward: From -> To? let backward: To -> From } @@ -9,6 +9,6 @@ extension Dictionary { } } -func >>> (left: Prism, right: Prism) -> Prism { +public func >>> (left: Prism, right: Prism) -> Prism { return Prism(forward: { left.forward($0).flatMap(right.forward) }, backward: right.backward >>> left.backward) }