@@ -1,61 +1,78 @@
11
22module Text where
33
4−import Native.Text as T
5−
4+import open Color
5+import Native.Text as Native
66
77-- Convert a string into text which can be styled and displayed.
88toText : String -> Text
9+toText = Native.toText
910
1011-- Set the typeface of some text. The first argument should be a comma separated listing of the desired typefaces
1112-- "helvetica, arial, sans-serif"
1213-- Works the same as the CSS font-family property.
1314typeface : String -> Text -> Text
15+typeface = Native.typeface
1416
1517-- Switch to a monospace typeface. Good for code snippets.
1618monospace : Text -> Text
19+monospace = Native.monospace
1720
1821-- Make text big and noticable.
1922header : Text -> Text
23+header = Native.header
2024
2125-- Create a link.
2226link : String -> Text -> Text
27+link = Native.link
2328
2429-- Set the height of text in pixels.
2530height : Float -> Text -> Text
31+height = Native.height
2632
2733-- Set the color of a string.
2834color : Color -> Text -> Text
35+color = Native.color
2936
3037-- Make a string bold.
3138bold : Text -> Text
39+bold = Native.bold
3240
3341-- Italicize a string.
3442italic : Text -> Text
43+italic = Native.italic
3544
3645-- Draw a line above a string.
3746overline : Text -> Text
47+overline = Native.overline
3848
3949-- Underline a string.
4050underline : Text -> Text
51+underline = Native.underline
4152
4253-- Draw a line through a string.
4354strikeThrough : Text -> Text
55+strikeThrough = Native.strikeThrough
4456
4557-- Display justified, styled text.
4658justified : Text -> Element
59+justified = Native.justified
4760
4861-- Display centered, styled text.
4962centered : Text -> Element
63+centered = Native.centered
5064
5165-- Display right justified, styled text.
5266righted : Text -> Element
67+righted = Native.righted
5368
5469-- Display styled text.
5570text : Text -> Element
71+text = Native.text
5672
5773-- Display a plain string.
5874plainText : String -> Element
75+plainText = Native.plainText
5976
6077-- Convert anything to it's textual representation and make it displayable in browser
6178--
@@ -63,3 +80,4 @@ plainText : String -> Element
6380--
6481-- Excellent for debugging.
6582asText : a -> Element
83+asText = Native.asText