             version: version)
 }
 
-public func serialize<S>(
-    nodes: S,
+public func serialize<Nodes>(
+    nodes: Nodes,
     canonical: Bool = false,
     indent: Int = 0,
     width: Int = 0,

#endif
import Foundation

public func dump<S>(
    objects: S,
    canonical: Bool = false,
    indent: Int = 0,
    width: Int = 0,

    explicitStart: Bool = false,
    explicitEnd: Bool = false,
    version: (major: Int, minor: Int)? = nil) throws -> String
    where Nodes: Sequence, Nodes.Iterator.Element == Node {
        let emitter = Emitter(
            canonical: canonical,
            indent: indent,
