on master help sign in
Properly import show from the String library
0cf6ad2Evan Czaplicki
libraries/Text.elm+2−1
@@ -25,6 +25,7 @@ There are also a bunch of functions to set parts of a `Style` individually:
25-}
25-}
26
26
27import Basics (..)
27import Basics (..)
28+import String
28import Color (Color)
29import Color (Color)
29import Graphics.Element (Element, Three, Pos, ElementPrim, Properties)
30import Graphics.Element (Element, Three, Pos, ElementPrim, Properties)
30import Maybe (Maybe)
31import Maybe (Maybe)
@@ -123,4 +124,4 @@ Excellent for debugging.
123-}
124-}
124asText : a -> Element
125asText : a -> Element
125asText value =
126asText value =
126− leftAligned (monospace (toText (show value)))
127+ leftAligned (monospace (toText (String.show value)))