Skip to content

Instantly share code, notes, and snippets.

@Janiczek
Created October 7, 2016 07:16
Embed
What would you like to do?
-- 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