Created
October 7, 2016 07:16
-
-
Save Janiczek/9deecb62ae58ae90716a0efae99f4077 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- 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