4r/app/Color/Print.hs

11 lines
257 B
Haskell

module Color.Print (PrintColor(..)) where
import Relude
import Polysemy (Members, Sem)
import Polysemy.Output (Output)
import Polysemy.Sgr (Sgr, SgrRegion)
class PrintColor a where
printColor :: Members [Output Text, Sgr, SgrRegion] r => a -> Sem r ()