Skip to content

Instantly share code, notes, and snippets.

@ColonelJ
Last active August 29, 2015 14:02
Show Gist options
  • Save ColonelJ/d64f25bc1a439cb60dff to your computer and use it in GitHub Desktop.
Save ColonelJ/d64f25bc1a439cb60dff to your computer and use it in GitHub Desktop.
import Window
main : Signal Element
main = display <~ Window.dimensions
display (w, h) = flow down [width w <| centered txt1, width w <| centered txt2]
txt1 = toText "Reeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeally long string"
txt2 = toText "Hello world"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment