Skip to content

Instantly share code, notes, and snippets.

@Janiczek
Created October 7, 2016 07:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Janiczek/9deecb62ae58ae90716a0efae99f4077 to your computer and use it in GitHub Desktop.
Save Janiczek/9deecb62ae58ae90716a0efae99f4077 to your computer and use it in GitHub Desktop.
-- Alignment.Alignment, ColorType.Color and Highlight.Highlight are my union types (simple enums basically)
type RichText
= Text String
| MultipleText (List RichText)
| Newline
| Bold RichText
| Italic RichText
| Underline RichText
| Align Alignment.Alignment RichText
| Color ColorType.Color RichText
| Highlight Highlight.Highlight RichText
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment