[
    {
        "name": "Ansi",
        "comment": "This library primarily exposes the `parse` function and the types that it\nwill yield.\n\n@docs parse\n\n@docs Action, Color",
        "unions": [
            {
                "name": "Action",
                "comment": "The events relevant to interpreting the stream.\n\n* `SetForeground` corresponds to `\\e[3Xm` and `\\e[4Xm` where X is the color\n* `SetBackground` corresponds to `\\e[9Xm` and `\\e[10Xm` where X is the color\n* `SetBold` corresponds to `\\e[1m`\n* `SetFaint` corresponds to `\\e[2m`\n* `SetItalic` corresponds to `\\e[3m`\n* `SetUnderline` corresponds to `\\e[4m`\n* `SetInverted` corresponds to `\\e[7m`\n* `Linebreak` corresponds to a '\\n' character\n* `CarriageReturn` corresponds to a '\\r' character\n* `Print` is a chunk of text which should be interpreted with the style implied\n  by the preceding actions (i.e. `[Bold True, Print \"foo\"]`) should yield a bold\n  \"foo\"\n* `Remainder` is a partial ANSI escape sequence, returned at the end of the\n  actions if it was cut off. The next string passed to `parse` should have this\n  prepended to it.",
                "args": [],
                "cases": [
                    [
                        "SetForeground",
                        [
                            "Maybe Color"
                        ]
                    ],
                    [
                        "SetBackground",
                        [
                            "Maybe Color"
                        ]
                    ],
                    [
                        "SetBold",
                        [
                            "Bool"
                        ]
                    ],
                    [
                        "SetFaint",
                        [
                            "Bool"
                        ]
                    ],
                    [
                        "SetItalic",
                        [
                            "Bool"
                        ]
                    ],
                    [
                        "SetUnderline",
                        [
                            "Bool"
                        ]
                    ],
                    [
                        "SetInverted",
                        [
                            "Bool"
                        ]
                    ],
                    [
                        "Linebreak",
                        []
                    ],
                    [
                        "CarriageReturn",
                        []
                    ],
                    [
                        "Print",
                        [
                            "String"
                        ]
                    ],
                    [
                        "Remainder",
                        [
                            "String"
                        ]
                    ]
                ]
            },
            {
                "name": "Color",
                "comment": "The colors applied to the foreground/background.",
                "args": [],
                "cases": [
                    [
                        "Black",
                        []
                    ],
                    [
                        "Red",
                        []
                    ],
                    [
                        "Green",
                        []
                    ],
                    [
                        "Yellow",
                        []
                    ],
                    [
                        "Blue",
                        []
                    ],
                    [
                        "Magenta",
                        []
                    ],
                    [
                        "Cyan",
                        []
                    ],
                    [
                        "White",
                        []
                    ],
                    [
                        "BrightBlack",
                        []
                    ],
                    [
                        "BrightRed",
                        []
                    ],
                    [
                        "BrightGreen",
                        []
                    ],
                    [
                        "BrightYellow",
                        []
                    ],
                    [
                        "BrightBlue",
                        []
                    ],
                    [
                        "BrightMagenta",
                        []
                    ],
                    [
                        "BrightCyan",
                        []
                    ],
                    [
                        "BrightWhite",
                        []
                    ]
                ]
            }
        ],
        "aliases": [],
        "values": [
            {
                "name": "parse",
                "comment": "Convert an arbitrary String of text into a sequence of actions.\n\nIf the input string ends with a partial ANSI escape sequence, it will be\nyielded as a `Remainder` action, which should then be prepended to the next\ncall to `parse`.",
                "type": "String -> List Action"
            }
        ],
        "binops": []
    }
]