on master help sign in
Import qualified Text module by default
f9cc451Evan Czaplicki
compiler/Metadata/Prelude.hs+2−2
@@ -22,9 +22,9 @@ add (Module name exs ims stmts) = Module name exs (customIms ++ ims) stmts
22 Just _ -> []
22 Just _ -> []
23
23
24prelude :: [(String, ImportMethod)]
24prelude :: [(String, ImportMethod)]
25−prelude = text : map (\n -> (n, Hiding [])) modules
25+prelude = text ++ map (\n -> (n, Hiding [])) modules
26 where
26 where
27− text = ("Text", Hiding ["link", "color", "height"])
27+ text = map ((,) "Text") [ As "Text", Hiding ["link", "color", "height"] ]
28 modules = [ "Basics", "Signal", "List", "Maybe", "Time"
28 modules = [ "Basics", "Signal", "List", "Maybe", "Time"
29 , "Graphics.Element", "Color", "Graphics.Collage" ]
29 , "Graphics.Element", "Color", "Graphics.Collage" ]
30
30