elm-examples/basic/display/Text.elm
Yann Esposito (Yogsototh) 82a76207ec added some examples
2014-12-20 21:45:45 +01:00

13 lines
374 B
Elm

import Graphics.Element (Element, flow, down)
import Text (..)
main : Element
main =
flow down
[ leftAligned (bold (fromString "Bold"))
, leftAligned (italic (fromString "Italicize"))
, leftAligned (link "/" (fromString "Link"))
]
-- Challenge: can you rewrite this example so the code is less
-- repetative? Try using map to factor out common patterns.