{-# LANGUAGE OverloadedStrings #-}
module Data.GraphViz.Attributes.Colors.Brewer
( BrewerScheme(..)
, BrewerName(..)
, BrewerColor(..)
) where
import Data.GraphViz.Attributes.ColorScheme(BrewerScheme(..), BrewerName(..))
import Data.GraphViz.Parsing()
import Data.GraphViz.Printing()
import Data.Word(Word8)
data BrewerColor = BC BrewerScheme Word8
deriving (BrewerColor -> BrewerColor -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: BrewerColor -> BrewerColor -> Bool
$c/= :: BrewerColor -> BrewerColor -> Bool
== :: BrewerColor -> BrewerColor -> Bool
$c== :: BrewerColor -> BrewerColor -> Bool
Eq, Eq BrewerColor
BrewerColor -> BrewerColor -> Bool
BrewerColor -> BrewerColor -> Ordering
BrewerColor -> BrewerColor -> BrewerColor
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: BrewerColor -> BrewerColor -> BrewerColor
$cmin :: BrewerColor -> BrewerColor -> BrewerColor
max :: BrewerColor -> BrewerColor -> BrewerColor
$cmax :: BrewerColor -> BrewerColor -> BrewerColor
>= :: BrewerColor -> BrewerColor -> Bool
$c>= :: BrewerColor -> BrewerColor -> Bool
> :: BrewerColor -> BrewerColor -> Bool
$c> :: BrewerColor -> BrewerColor -> Bool
<= :: BrewerColor -> BrewerColor -> Bool
$c<= :: BrewerColor -> BrewerColor -> Bool
< :: BrewerColor -> BrewerColor -> Bool
$c< :: BrewerColor -> BrewerColor -> Bool
compare :: BrewerColor -> BrewerColor -> Ordering
$ccompare :: BrewerColor -> BrewerColor -> Ordering
Ord, Int -> BrewerColor -> ShowS
[BrewerColor] -> ShowS
BrewerColor -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [BrewerColor] -> ShowS
$cshowList :: [BrewerColor] -> ShowS
show :: BrewerColor -> String
$cshow :: BrewerColor -> String
showsPrec :: Int -> BrewerColor -> ShowS
$cshowsPrec :: Int -> BrewerColor -> ShowS
Show, ReadPrec [BrewerColor]
ReadPrec BrewerColor
Int -> ReadS BrewerColor
ReadS [BrewerColor]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [BrewerColor]
$creadListPrec :: ReadPrec [BrewerColor]
readPrec :: ReadPrec BrewerColor
$creadPrec :: ReadPrec BrewerColor
readList :: ReadS [BrewerColor]
$creadList :: ReadS [BrewerColor]
readsPrec :: Int -> ReadS BrewerColor
$creadsPrec :: Int -> ReadS BrewerColor
Read)