13 lines
374 B
Elm
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.
|