modulePenny.Cabin.Chunk.SwitchwhereimportqualifiedPenny.Cabin.ChunkasC-- | Switch the foreground colors for new ones.switchForeground::C.Foreground8->C.Foreground256->C.TextSpec->C.TextSpecswitchForegroundc8c256ts=ts'wherets'=C.TextSpecs8's256's8'=(C.style8ts){C.foreground8=c8}s256'=(C.style256ts){C.foreground256=c256}-- | Switch the background colors for new ones.switchBackground::C.Background8->C.Background256->C.TextSpec->C.TextSpecswitchBackgroundc8c256ts=ts'wherets'=C.TextSpecs8's256's8'=(C.style8ts){C.background8=c8}s256'=(C.style256ts){C.background256=c256}