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