//  Copyright © 2015 Rob Rix. All rights reserved.

extension Module {
	public static var list: Module<Recur> {
		return Module([
			Declaration.Datatype("List", .Argument(.Type, {
				[
					"nil": .End,
					"cons": .Argument($0, const(.Recursive(.End)))
				]
			}))
		])
	}
}


import Prelude

//  Copyright © 2015 Rob Rix. All rights reserved.

extension Module {
	public static var list: Module<Recur> {
		return Module([
			Declaration.Datatype("List", .Argument(.Type, {
				.End([
					"nil": .End,
					"cons": .Argument($0, const(.Recursive(.End)))
				])
			}))
		])
	}
}


import Prelude

--- 
+++ 
@@ -4,10 +4,10 @@
 	public static var list: Module<Recur> {
 		return Module([
 			Declaration.Datatype("List", .Argument(.Type, {
-				.End([
+				[
 					"nil": .End,
 					"cons": .Argument($0, const(.Recursive(.End)))
-				])
+				]
 			}))
 		])
 	}
Use the dictionary literal convertible syntax.
