on master help sign in
Import (::) operator as a default

Goal is to be parallel with other default imports. Maybe(Just,Nothing) and Result(Ok,Err) the constructors come in by default, but with lists, we were not bringing in all of the constructors.

commit8b2c02d7caa82ae4b01fc9dcb5b2ecaa167e80c2 authorEvan Czaplicki <info@elm-lang.org> dateSat 20 Dec 2014, 21:32 (12 years ago) parentf523629
1 file changed+1
src/Transform/AddDefaultImports.hs+1
src/Transform/AddDefaultImports.hs+1
@@ -22,6 +22,7 @@ defaultImports :: ImportDict
2222defaultImports =
2323 Map.fromList
2424 [ ["Basics"] ==> ([], Var.openListing)
25+ , ["List"] ==> ([], Var.Listing [Var.Value "::"] False)
2526 , ["Maybe"] ==> ([], Var.Listing [maybe] False)
2627 , ["Result"] ==> ([], Var.Listing [result] False)
2728 , ["Signal"] ==> ([], Var.Listing [signal] False)