@@ -1,61 +1,78 @@
2module Text where
2module Text where
4−import Native.Text as T
5+import Native.Text as Native
7-- Convert a string into text which can be styled and displayed.
7-- Convert a string into text which can be styled and displayed.
8toText : String -> Text
8toText : String -> Text
10-- Set the typeface of some text. The first argument should be a comma separated listing of the desired typefaces
11-- Set the typeface of some text. The first argument should be a comma separated listing of the desired typefaces
11-- "helvetica, arial, sans-serif"
12-- "helvetica, arial, sans-serif"
12-- Works the same as the CSS font-family property.
13-- Works the same as the CSS font-family property.
13typeface : String -> Text -> Text
14typeface : String -> Text -> Text
15+typeface = Native.typeface
15-- Switch to a monospace typeface. Good for code snippets.
17-- Switch to a monospace typeface. Good for code snippets.
16monospace : Text -> Text
18monospace : Text -> Text
19+monospace = Native.monospace
18-- Make text big and noticable.
21-- Make text big and noticable.
19header : Text -> Text
22header : Text -> Text
23+header = Native.header
21-- Create a link.
25-- Create a link.
22link : String -> Text -> Text
26link : String -> Text -> Text
24-- Set the height of text in pixels.
29-- Set the height of text in pixels.
25height : Float -> Text -> Text
30height : Float -> Text -> Text
31+height = Native.height
27-- Set the color of a string.
33-- Set the color of a string.
28color : Color -> Text -> Text
34color : Color -> Text -> Text
30-- Make a string bold.
37-- Make a string bold.
31bold : Text -> Text
38bold : Text -> Text
33-- Italicize a string.
41-- Italicize a string.
34italic : Text -> Text
42italic : Text -> Text
43+italic = Native.italic
36-- Draw a line above a string.
45-- Draw a line above a string.
37overline : Text -> Text
46overline : Text -> Text
47+overline = Native.overline
39-- Underline a string.
49-- Underline a string.
40underline : Text -> Text
50underline : Text -> Text
51+underline = Native.underline
42-- Draw a line through a string.
53-- Draw a line through a string.
43strikeThrough : Text -> Text
54strikeThrough : Text -> Text
55+strikeThrough = Native.strikeThrough
45-- Display justified, styled text.
57-- Display justified, styled text.
46justified : Text -> Element
58justified : Text -> Element
59+justified = Native.justified
48-- Display centered, styled text.
61-- Display centered, styled text.
49centered : Text -> Element
62centered : Text -> Element
63+centered = Native.centered
51-- Display right justified, styled text.
65-- Display right justified, styled text.
52righted : Text -> Element
66righted : Text -> Element
67+righted = Native.righted
54-- Display styled text.
69-- Display styled text.
55text : Text -> Element
70text : Text -> Element
57-- Display a plain string.
73-- Display a plain string.
58plainText : String -> Element
74plainText : String -> Element
75+plainText = Native.plainText
60-- Convert anything to it's textual representation and make it displayable in browser
77-- Convert anything to it's textual representation and make it displayable in browser
@@ -63,3 +80,4 @@ plainText : String -> Element
64-- Excellent for debugging.
81-- Excellent for debugging.
65asText : a -> Element
82asText : a -> Element
83+asText = Native.asText