@@ -16,34 +16,11 @@ type ImportDict =
17prelude :: ImportDict
17prelude :: ImportDict
19− Map.unions [ string, text, maybe, openImports ]
21− importing :: Module.Name -> [Var.Value] -> ImportDict
22− importing name values =
23− Map.singleton name ([], Var.Listing values False)
25− openImports :: ImportDict
27− Map.fromList $ map (\name -> (name, ([], Var.openListing))) $
19+ Map.fromList $ map (\name -> (name, ([], Var.openListing))) $
28− [ ["Basics"], ["Signal"], ["List"], ["Time"], ["Color"]
20+ [ -- ["Basics"]
29− , ["Graphics","Element"], ["Graphics","Collage"]
30− , ["Native","Ports"], ["Native","Json"]
21+ ["Native","Ports"]
31− ]
22+ , ["Native","Json"]
34− maybe = importing ["Maybe"] [ Var.ADT "Maybe" Var.openListing ]
37− string = importing ["String"] [Var.Value "show"]
40− text = importing ["Text"] (Var.ADT "Text" (Var.Listing [] False) : values)
44− [ "toText", "leftAligned", "rightAligned", "centered", "justified"
45− , "plainText", "asText", "typeface", "monospace", "bold", "italic"
49-- ADDING PRELUDE TO A MODULE
26-- ADDING PRELUDE TO A MODULE