{-# language DeriveAnyClass #-}
{-# language DeriveDataTypeable #-}
{-# language DeriveGeneric #-}
{-# language DeriveTraversable #-}

module CodeWorld.Tasks.Types (
  TextStyle(..),
  Font(..),
  ReifyPicture(..),
  Shape(..),
  Style(..),
  ) where


import Control.DeepSeq                  (NFData)
import Data.Data                        (Data)
import Data.Text                        (Text)
import GHC.Generics                     (Generic)

import CodeWorld.Tasks.Color            (Color)
import CodeWorld.Tasks.VectorSpace      (Point)


{-|
Basic syntax tree type of the CodeWorld API.
Each API function has a corresponding constructor.

The type variable is necessary for CSE detection via [Reify](https://hackage.haskell.org/package/data-reify).
The method replaces subexpressions with number ids, so we need to be flexible in the wrapped type.
-}
data ReifyPicture a
  = Rectangle Style Double Double
  | Circle Style Double
  | Polyline Shape [Point]
  | Arc Style Double Double Double
  | Curve Shape [Point]
  | Lettering Text
  | StyledLettering TextStyle Font Text
  | Color Color a
  | Translate Double Double a
  | Scale Double Double a
  | Dilate Double a
  | Rotate Double a
  | Reflect Double a
  | Clip Double Double a
  | Pictures [a]
  | And a a
  | CoordinatePlane
  | 
  | Blank
  deriving (Int -> ReifyPicture a -> ShowS
[ReifyPicture a] -> ShowS
ReifyPicture a -> String
(Int -> ReifyPicture a -> ShowS)
-> (ReifyPicture a -> String)
-> ([ReifyPicture a] -> ShowS)
-> Show (ReifyPicture a)
forall a. Show a => Int -> ReifyPicture a -> ShowS
forall a. Show a => [ReifyPicture a] -> ShowS
forall a. Show a => ReifyPicture a -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: forall a. Show a => Int -> ReifyPicture a -> ShowS
showsPrec :: Int -> ReifyPicture a -> ShowS
$cshow :: forall a. Show a => ReifyPicture a -> String
show :: ReifyPicture a -> String
$cshowList :: forall a. Show a => [ReifyPicture a] -> ShowS
showList :: [ReifyPicture a] -> ShowS
Show, (forall m. Monoid m => ReifyPicture m -> m)
-> (forall m a. Monoid m => (a -> m) -> ReifyPicture a -> m)
-> (forall m a. Monoid m => (a -> m) -> ReifyPicture a -> m)
-> (forall a b. (a -> b -> b) -> b -> ReifyPicture a -> b)
-> (forall a b. (a -> b -> b) -> b -> ReifyPicture a -> b)
-> (forall b a. (b -> a -> b) -> b -> ReifyPicture a -> b)
-> (forall b a. (b -> a -> b) -> b -> ReifyPicture a -> b)
-> (forall a. (a -> a -> a) -> ReifyPicture a -> a)
-> (forall a. (a -> a -> a) -> ReifyPicture a -> a)
-> (forall a. ReifyPicture a -> [a])
-> (forall a. ReifyPicture a -> Bool)
-> (forall a. ReifyPicture a -> Int)
-> (forall a. Eq a => a -> ReifyPicture a -> Bool)
-> (forall a. Ord a => ReifyPicture a -> a)
-> (forall a. Ord a => ReifyPicture a -> a)
-> (forall a. Num a => ReifyPicture a -> a)
-> (forall a. Num a => ReifyPicture a -> a)
-> Foldable ReifyPicture
forall a. Eq a => a -> ReifyPicture a -> Bool
forall a. Num a => ReifyPicture a -> a
forall a. Ord a => ReifyPicture a -> a
forall m. Monoid m => ReifyPicture m -> m
forall a. ReifyPicture a -> Bool
forall a. ReifyPicture a -> Int
forall a. ReifyPicture a -> [a]
forall a. (a -> a -> a) -> ReifyPicture a -> a
forall m a. Monoid m => (a -> m) -> ReifyPicture a -> m
forall b a. (b -> a -> b) -> b -> ReifyPicture a -> b
forall a b. (a -> b -> b) -> b -> ReifyPicture a -> b
forall (t :: * -> *).
(forall m. Monoid m => t m -> m)
-> (forall m a. Monoid m => (a -> m) -> t a -> m)
-> (forall m a. Monoid m => (a -> m) -> t a -> m)
-> (forall a b. (a -> b -> b) -> b -> t a -> b)
-> (forall a b. (a -> b -> b) -> b -> t a -> b)
-> (forall b a. (b -> a -> b) -> b -> t a -> b)
-> (forall b a. (b -> a -> b) -> b -> t a -> b)
-> (forall a. (a -> a -> a) -> t a -> a)
-> (forall a. (a -> a -> a) -> t a -> a)
-> (forall a. t a -> [a])
-> (forall a. t a -> Bool)
-> (forall a. t a -> Int)
-> (forall a. Eq a => a -> t a -> Bool)
-> (forall a. Ord a => t a -> a)
-> (forall a. Ord a => t a -> a)
-> (forall a. Num a => t a -> a)
-> (forall a. Num a => t a -> a)
-> Foldable t
$cfold :: forall m. Monoid m => ReifyPicture m -> m
fold :: forall m. Monoid m => ReifyPicture m -> m
$cfoldMap :: forall m a. Monoid m => (a -> m) -> ReifyPicture a -> m
foldMap :: forall m a. Monoid m => (a -> m) -> ReifyPicture a -> m
$cfoldMap' :: forall m a. Monoid m => (a -> m) -> ReifyPicture a -> m
foldMap' :: forall m a. Monoid m => (a -> m) -> ReifyPicture a -> m
$cfoldr :: forall a b. (a -> b -> b) -> b -> ReifyPicture a -> b
foldr :: forall a b. (a -> b -> b) -> b -> ReifyPicture a -> b
$cfoldr' :: forall a b. (a -> b -> b) -> b -> ReifyPicture a -> b
foldr' :: forall a b. (a -> b -> b) -> b -> ReifyPicture a -> b
$cfoldl :: forall b a. (b -> a -> b) -> b -> ReifyPicture a -> b
foldl :: forall b a. (b -> a -> b) -> b -> ReifyPicture a -> b
$cfoldl' :: forall b a. (b -> a -> b) -> b -> ReifyPicture a -> b
foldl' :: forall b a. (b -> a -> b) -> b -> ReifyPicture a -> b
$cfoldr1 :: forall a. (a -> a -> a) -> ReifyPicture a -> a
foldr1 :: forall a. (a -> a -> a) -> ReifyPicture a -> a
$cfoldl1 :: forall a. (a -> a -> a) -> ReifyPicture a -> a
foldl1 :: forall a. (a -> a -> a) -> ReifyPicture a -> a
$ctoList :: forall a. ReifyPicture a -> [a]
toList :: forall a. ReifyPicture a -> [a]
$cnull :: forall a. ReifyPicture a -> Bool
null :: forall a. ReifyPicture a -> Bool
$clength :: forall a. ReifyPicture a -> Int
length :: forall a. ReifyPicture a -> Int
$celem :: forall a. Eq a => a -> ReifyPicture a -> Bool
elem :: forall a. Eq a => a -> ReifyPicture a -> Bool
$cmaximum :: forall a. Ord a => ReifyPicture a -> a
maximum :: forall a. Ord a => ReifyPicture a -> a
$cminimum :: forall a. Ord a => ReifyPicture a -> a
minimum :: forall a. Ord a => ReifyPicture a -> a
$csum :: forall a. Num a => ReifyPicture a -> a
sum :: forall a. Num a => ReifyPicture a -> a
$cproduct :: forall a. Num a => ReifyPicture a -> a
product :: forall a. Num a => ReifyPicture a -> a
Foldable, ReifyPicture a -> ReifyPicture a -> Bool
(ReifyPicture a -> ReifyPicture a -> Bool)
-> (ReifyPicture a -> ReifyPicture a -> Bool)
-> Eq (ReifyPicture a)
forall a. Eq a => ReifyPicture a -> ReifyPicture a -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: forall a. Eq a => ReifyPicture a -> ReifyPicture a -> Bool
== :: ReifyPicture a -> ReifyPicture a -> Bool
$c/= :: forall a. Eq a => ReifyPicture a -> ReifyPicture a -> Bool
/= :: ReifyPicture a -> ReifyPicture a -> Bool
Eq, Eq (ReifyPicture a)
Eq (ReifyPicture a) =>
(ReifyPicture a -> ReifyPicture a -> Ordering)
-> (ReifyPicture a -> ReifyPicture a -> Bool)
-> (ReifyPicture a -> ReifyPicture a -> Bool)
-> (ReifyPicture a -> ReifyPicture a -> Bool)
-> (ReifyPicture a -> ReifyPicture a -> Bool)
-> (ReifyPicture a -> ReifyPicture a -> ReifyPicture a)
-> (ReifyPicture a -> ReifyPicture a -> ReifyPicture a)
-> Ord (ReifyPicture a)
ReifyPicture a -> ReifyPicture a -> Bool
ReifyPicture a -> ReifyPicture a -> Ordering
ReifyPicture a -> ReifyPicture a -> ReifyPicture a
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
forall a. Ord a => Eq (ReifyPicture a)
forall a. Ord a => ReifyPicture a -> ReifyPicture a -> Bool
forall a. Ord a => ReifyPicture a -> ReifyPicture a -> Ordering
forall a.
Ord a =>
ReifyPicture a -> ReifyPicture a -> ReifyPicture a
$ccompare :: forall a. Ord a => ReifyPicture a -> ReifyPicture a -> Ordering
compare :: ReifyPicture a -> ReifyPicture a -> Ordering
$c< :: forall a. Ord a => ReifyPicture a -> ReifyPicture a -> Bool
< :: ReifyPicture a -> ReifyPicture a -> Bool
$c<= :: forall a. Ord a => ReifyPicture a -> ReifyPicture a -> Bool
<= :: ReifyPicture a -> ReifyPicture a -> Bool
$c> :: forall a. Ord a => ReifyPicture a -> ReifyPicture a -> Bool
> :: ReifyPicture a -> ReifyPicture a -> Bool
$c>= :: forall a. Ord a => ReifyPicture a -> ReifyPicture a -> Bool
>= :: ReifyPicture a -> ReifyPicture a -> Bool
$cmax :: forall a.
Ord a =>
ReifyPicture a -> ReifyPicture a -> ReifyPicture a
max :: ReifyPicture a -> ReifyPicture a -> ReifyPicture a
$cmin :: forall a.
Ord a =>
ReifyPicture a -> ReifyPicture a -> ReifyPicture a
min :: ReifyPicture a -> ReifyPicture a -> ReifyPicture a
Ord, (forall x. ReifyPicture a -> Rep (ReifyPicture a) x)
-> (forall x. Rep (ReifyPicture a) x -> ReifyPicture a)
-> Generic (ReifyPicture a)
forall x. Rep (ReifyPicture a) x -> ReifyPicture a
forall x. ReifyPicture a -> Rep (ReifyPicture a) x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
forall a x. Rep (ReifyPicture a) x -> ReifyPicture a
forall a x. ReifyPicture a -> Rep (ReifyPicture a) x
$cfrom :: forall a x. ReifyPicture a -> Rep (ReifyPicture a) x
from :: forall x. ReifyPicture a -> Rep (ReifyPicture a) x
$cto :: forall a x. Rep (ReifyPicture a) x -> ReifyPicture a
to :: forall x. Rep (ReifyPicture a) x -> ReifyPicture a
Generic, ReifyPicture a -> ()
(ReifyPicture a -> ()) -> NFData (ReifyPicture a)
forall a. NFData a => ReifyPicture a -> ()
forall a. (a -> ()) -> NFData a
$crnf :: forall a. NFData a => ReifyPicture a -> ()
rnf :: ReifyPicture a -> ()
NFData, Typeable (ReifyPicture a)
Typeable (ReifyPicture a) =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> ReifyPicture a -> c (ReifyPicture a))
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c (ReifyPicture a))
-> (ReifyPicture a -> Constr)
-> (ReifyPicture a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c (ReifyPicture a)))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e))
    -> Maybe (c (ReifyPicture a)))
-> ((forall b. Data b => b -> b)
    -> ReifyPicture a -> ReifyPicture a)
-> (forall r r'.
    (r -> r' -> r)
    -> r -> (forall d. Data d => d -> r') -> ReifyPicture a -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r -> (forall d. Data d => d -> r') -> ReifyPicture a -> r)
-> (forall u.
    (forall d. Data d => d -> u) -> ReifyPicture a -> [u])
-> (forall u.
    Int -> (forall d. Data d => d -> u) -> ReifyPicture a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d)
    -> ReifyPicture a -> m (ReifyPicture a))
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d)
    -> ReifyPicture a -> m (ReifyPicture a))
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d)
    -> ReifyPicture a -> m (ReifyPicture a))
-> Data (ReifyPicture a)
ReifyPicture a -> Constr
ReifyPicture a -> DataType
(forall b. Data b => b -> b) -> ReifyPicture a -> ReifyPicture a
forall a. Data a => Typeable (ReifyPicture a)
forall a. Data a => ReifyPicture a -> Constr
forall a. Data a => ReifyPicture a -> DataType
forall a.
Data a =>
(forall b. Data b => b -> b) -> ReifyPicture a -> ReifyPicture a
forall a u.
Data a =>
Int -> (forall d. Data d => d -> u) -> ReifyPicture a -> u
forall a u.
Data a =>
(forall d. Data d => d -> u) -> ReifyPicture a -> [u]
forall a r r'.
Data a =>
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> ReifyPicture a -> r
forall a r r'.
Data a =>
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> ReifyPicture a -> r
forall a (m :: * -> *).
(Data a, Monad m) =>
(forall d. Data d => d -> m d)
-> ReifyPicture a -> m (ReifyPicture a)
forall a (m :: * -> *).
(Data a, MonadPlus m) =>
(forall d. Data d => d -> m d)
-> ReifyPicture a -> m (ReifyPicture a)
forall a (c :: * -> *).
Data a =>
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c (ReifyPicture a)
forall a (c :: * -> *).
Data a =>
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> ReifyPicture a -> c (ReifyPicture a)
forall a (t :: * -> *) (c :: * -> *).
(Data a, Typeable t) =>
(forall d. Data d => c (t d)) -> Maybe (c (ReifyPicture a))
forall a (t :: * -> * -> *) (c :: * -> *).
(Data a, Typeable t) =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c (ReifyPicture a))
forall a.
Typeable a =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u.
Int -> (forall d. Data d => d -> u) -> ReifyPicture a -> u
forall u. (forall d. Data d => d -> u) -> ReifyPicture a -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> ReifyPicture a -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> ReifyPicture a -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> ReifyPicture a -> m (ReifyPicture a)
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> ReifyPicture a -> m (ReifyPicture a)
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c (ReifyPicture a)
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> ReifyPicture a -> c (ReifyPicture a)
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c (ReifyPicture a))
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c (ReifyPicture a))
$cgfoldl :: forall a (c :: * -> *).
Data a =>
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> ReifyPicture a -> c (ReifyPicture a)
gfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> ReifyPicture a -> c (ReifyPicture a)
$cgunfold :: forall a (c :: * -> *).
Data a =>
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c (ReifyPicture a)
gunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c (ReifyPicture a)
$ctoConstr :: forall a. Data a => ReifyPicture a -> Constr
toConstr :: ReifyPicture a -> Constr
$cdataTypeOf :: forall a. Data a => ReifyPicture a -> DataType
dataTypeOf :: ReifyPicture a -> DataType
$cdataCast1 :: forall a (t :: * -> *) (c :: * -> *).
(Data a, Typeable t) =>
(forall d. Data d => c (t d)) -> Maybe (c (ReifyPicture a))
dataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c (ReifyPicture a))
$cdataCast2 :: forall a (t :: * -> * -> *) (c :: * -> *).
(Data a, Typeable t) =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c (ReifyPicture a))
dataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c (ReifyPicture a))
$cgmapT :: forall a.
Data a =>
(forall b. Data b => b -> b) -> ReifyPicture a -> ReifyPicture a
gmapT :: (forall b. Data b => b -> b) -> ReifyPicture a -> ReifyPicture a
$cgmapQl :: forall a r r'.
Data a =>
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> ReifyPicture a -> r
gmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> ReifyPicture a -> r
$cgmapQr :: forall a r r'.
Data a =>
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> ReifyPicture a -> r
gmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> ReifyPicture a -> r
$cgmapQ :: forall a u.
Data a =>
(forall d. Data d => d -> u) -> ReifyPicture a -> [u]
gmapQ :: forall u. (forall d. Data d => d -> u) -> ReifyPicture a -> [u]
$cgmapQi :: forall a u.
Data a =>
Int -> (forall d. Data d => d -> u) -> ReifyPicture a -> u
gmapQi :: forall u.
Int -> (forall d. Data d => d -> u) -> ReifyPicture a -> u
$cgmapM :: forall a (m :: * -> *).
(Data a, Monad m) =>
(forall d. Data d => d -> m d)
-> ReifyPicture a -> m (ReifyPicture a)
gmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> ReifyPicture a -> m (ReifyPicture a)
$cgmapMp :: forall a (m :: * -> *).
(Data a, MonadPlus m) =>
(forall d. Data d => d -> m d)
-> ReifyPicture a -> m (ReifyPicture a)
gmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> ReifyPicture a -> m (ReifyPicture a)
$cgmapMo :: forall a (m :: * -> *).
(Data a, MonadPlus m) =>
(forall d. Data d => d -> m d)
-> ReifyPicture a -> m (ReifyPicture a)
gmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> ReifyPicture a -> m (ReifyPicture a)
Data)


data Style = Outline (Maybe Double) | Solid deriving (Int -> Style -> ShowS
[Style] -> ShowS
Style -> String
(Int -> Style -> ShowS)
-> (Style -> String) -> ([Style] -> ShowS) -> Show Style
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Style -> ShowS
showsPrec :: Int -> Style -> ShowS
$cshow :: Style -> String
show :: Style -> String
$cshowList :: [Style] -> ShowS
showList :: [Style] -> ShowS
Show, Style -> Style -> Bool
(Style -> Style -> Bool) -> (Style -> Style -> Bool) -> Eq Style
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Style -> Style -> Bool
== :: Style -> Style -> Bool
$c/= :: Style -> Style -> Bool
/= :: Style -> Style -> Bool
Eq, Eq Style
Eq Style =>
(Style -> Style -> Ordering)
-> (Style -> Style -> Bool)
-> (Style -> Style -> Bool)
-> (Style -> Style -> Bool)
-> (Style -> Style -> Bool)
-> (Style -> Style -> Style)
-> (Style -> Style -> Style)
-> Ord Style
Style -> Style -> Bool
Style -> Style -> Ordering
Style -> Style -> Style
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
$ccompare :: Style -> Style -> Ordering
compare :: Style -> Style -> Ordering
$c< :: Style -> Style -> Bool
< :: Style -> Style -> Bool
$c<= :: Style -> Style -> Bool
<= :: Style -> Style -> Bool
$c> :: Style -> Style -> Bool
> :: Style -> Style -> Bool
$c>= :: Style -> Style -> Bool
>= :: Style -> Style -> Bool
$cmax :: Style -> Style -> Style
max :: Style -> Style -> Style
$cmin :: Style -> Style -> Style
min :: Style -> Style -> Style
Ord, (forall x. Style -> Rep Style x)
-> (forall x. Rep Style x -> Style) -> Generic Style
forall x. Rep Style x -> Style
forall x. Style -> Rep Style x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x. Style -> Rep Style x
from :: forall x. Style -> Rep Style x
$cto :: forall x. Rep Style x -> Style
to :: forall x. Rep Style x -> Style
Generic, Style -> ()
(Style -> ()) -> NFData Style
forall a. (a -> ()) -> NFData a
$crnf :: Style -> ()
rnf :: Style -> ()
NFData, Typeable Style
Typeable Style =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> Style -> c Style)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c Style)
-> (Style -> Constr)
-> (Style -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c Style))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Style))
-> ((forall b. Data b => b -> b) -> Style -> Style)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Style -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Style -> r)
-> (forall u. (forall d. Data d => d -> u) -> Style -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> Style -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> Style -> m Style)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> Style -> m Style)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> Style -> m Style)
-> Data Style
Style -> Constr
Style -> DataType
(forall b. Data b => b -> b) -> Style -> Style
forall a.
Typeable a =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u. Int -> (forall d. Data d => d -> u) -> Style -> u
forall u. (forall d. Data d => d -> u) -> Style -> [u]
forall r r'.
(r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Style -> r
forall r r'.
(r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Style -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> Style -> m Style
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> Style -> m Style
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c Style
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> Style -> c Style
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c Style)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Style)
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> Style -> c Style
gfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> Style -> c Style
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c Style
gunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c Style
$ctoConstr :: Style -> Constr
toConstr :: Style -> Constr
$cdataTypeOf :: Style -> DataType
dataTypeOf :: Style -> DataType
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c Style)
dataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c Style)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Style)
dataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Style)
$cgmapT :: (forall b. Data b => b -> b) -> Style -> Style
gmapT :: (forall b. Data b => b -> b) -> Style -> Style
$cgmapQl :: forall r r'.
(r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Style -> r
gmapQl :: forall r r'.
(r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Style -> r
$cgmapQr :: forall r r'.
(r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Style -> r
gmapQr :: forall r r'.
(r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Style -> r
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> Style -> [u]
gmapQ :: forall u. (forall d. Data d => d -> u) -> Style -> [u]
$cgmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> Style -> u
gmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> Style -> u
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> Style -> m Style
gmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> Style -> m Style
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> Style -> m Style
gmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> Style -> m Style
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> Style -> m Style
gmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> Style -> m Style
Data)
data Shape = Closed Style | Open (Maybe Double) deriving (Int -> Shape -> ShowS
[Shape] -> ShowS
Shape -> String
(Int -> Shape -> ShowS)
-> (Shape -> String) -> ([Shape] -> ShowS) -> Show Shape
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Shape -> ShowS
showsPrec :: Int -> Shape -> ShowS
$cshow :: Shape -> String
show :: Shape -> String
$cshowList :: [Shape] -> ShowS
showList :: [Shape] -> ShowS
Show, Shape -> Shape -> Bool
(Shape -> Shape -> Bool) -> (Shape -> Shape -> Bool) -> Eq Shape
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Shape -> Shape -> Bool
== :: Shape -> Shape -> Bool
$c/= :: Shape -> Shape -> Bool
/= :: Shape -> Shape -> Bool
Eq, Eq Shape
Eq Shape =>
(Shape -> Shape -> Ordering)
-> (Shape -> Shape -> Bool)
-> (Shape -> Shape -> Bool)
-> (Shape -> Shape -> Bool)
-> (Shape -> Shape -> Bool)
-> (Shape -> Shape -> Shape)
-> (Shape -> Shape -> Shape)
-> Ord Shape
Shape -> Shape -> Bool
Shape -> Shape -> Ordering
Shape -> Shape -> Shape
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
$ccompare :: Shape -> Shape -> Ordering
compare :: Shape -> Shape -> Ordering
$c< :: Shape -> Shape -> Bool
< :: Shape -> Shape -> Bool
$c<= :: Shape -> Shape -> Bool
<= :: Shape -> Shape -> Bool
$c> :: Shape -> Shape -> Bool
> :: Shape -> Shape -> Bool
$c>= :: Shape -> Shape -> Bool
>= :: Shape -> Shape -> Bool
$cmax :: Shape -> Shape -> Shape
max :: Shape -> Shape -> Shape
$cmin :: Shape -> Shape -> Shape
min :: Shape -> Shape -> Shape
Ord, (forall x. Shape -> Rep Shape x)
-> (forall x. Rep Shape x -> Shape) -> Generic Shape
forall x. Rep Shape x -> Shape
forall x. Shape -> Rep Shape x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x. Shape -> Rep Shape x
from :: forall x. Shape -> Rep Shape x
$cto :: forall x. Rep Shape x -> Shape
to :: forall x. Rep Shape x -> Shape
Generic, Shape -> ()
(Shape -> ()) -> NFData Shape
forall a. (a -> ()) -> NFData a
$crnf :: Shape -> ()
rnf :: Shape -> ()
NFData, Typeable Shape
Typeable Shape =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> Shape -> c Shape)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c Shape)
-> (Shape -> Constr)
-> (Shape -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c Shape))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Shape))
-> ((forall b. Data b => b -> b) -> Shape -> Shape)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Shape -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Shape -> r)
-> (forall u. (forall d. Data d => d -> u) -> Shape -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> Shape -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> Shape -> m Shape)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> Shape -> m Shape)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> Shape -> m Shape)
-> Data Shape
Shape -> Constr
Shape -> DataType
(forall b. Data b => b -> b) -> Shape -> Shape
forall a.
Typeable a =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u. Int -> (forall d. Data d => d -> u) -> Shape -> u
forall u. (forall d. Data d => d -> u) -> Shape -> [u]
forall r r'.
(r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Shape -> r
forall r r'.
(r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Shape -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> Shape -> m Shape
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> Shape -> m Shape
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c Shape
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> Shape -> c Shape
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c Shape)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Shape)
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> Shape -> c Shape
gfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> Shape -> c Shape
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c Shape
gunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c Shape
$ctoConstr :: Shape -> Constr
toConstr :: Shape -> Constr
$cdataTypeOf :: Shape -> DataType
dataTypeOf :: Shape -> DataType
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c Shape)
dataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c Shape)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Shape)
dataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Shape)
$cgmapT :: (forall b. Data b => b -> b) -> Shape -> Shape
gmapT :: (forall b. Data b => b -> b) -> Shape -> Shape
$cgmapQl :: forall r r'.
(r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Shape -> r
gmapQl :: forall r r'.
(r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Shape -> r
$cgmapQr :: forall r r'.
(r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Shape -> r
gmapQr :: forall r r'.
(r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Shape -> r
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> Shape -> [u]
gmapQ :: forall u. (forall d. Data d => d -> u) -> Shape -> [u]
$cgmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> Shape -> u
gmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> Shape -> u
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> Shape -> m Shape
gmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> Shape -> m Shape
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> Shape -> m Shape
gmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> Shape -> m Shape
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> Shape -> m Shape
gmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> Shape -> m Shape
Data)

{-|
Font modifier type used for stylized message rendering.
-}
data TextStyle
  = Plain
  | Bold
  | Italic
  deriving (TextStyle -> TextStyle -> Bool
(TextStyle -> TextStyle -> Bool)
-> (TextStyle -> TextStyle -> Bool) -> Eq TextStyle
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: TextStyle -> TextStyle -> Bool
== :: TextStyle -> TextStyle -> Bool
$c/= :: TextStyle -> TextStyle -> Bool
/= :: TextStyle -> TextStyle -> Bool
Eq,Eq TextStyle
Eq TextStyle =>
(TextStyle -> TextStyle -> Ordering)
-> (TextStyle -> TextStyle -> Bool)
-> (TextStyle -> TextStyle -> Bool)
-> (TextStyle -> TextStyle -> Bool)
-> (TextStyle -> TextStyle -> Bool)
-> (TextStyle -> TextStyle -> TextStyle)
-> (TextStyle -> TextStyle -> TextStyle)
-> Ord TextStyle
TextStyle -> TextStyle -> Bool
TextStyle -> TextStyle -> Ordering
TextStyle -> TextStyle -> TextStyle
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
$ccompare :: TextStyle -> TextStyle -> Ordering
compare :: TextStyle -> TextStyle -> Ordering
$c< :: TextStyle -> TextStyle -> Bool
< :: TextStyle -> TextStyle -> Bool
$c<= :: TextStyle -> TextStyle -> Bool
<= :: TextStyle -> TextStyle -> Bool
$c> :: TextStyle -> TextStyle -> Bool
> :: TextStyle -> TextStyle -> Bool
$c>= :: TextStyle -> TextStyle -> Bool
>= :: TextStyle -> TextStyle -> Bool
$cmax :: TextStyle -> TextStyle -> TextStyle
max :: TextStyle -> TextStyle -> TextStyle
$cmin :: TextStyle -> TextStyle -> TextStyle
min :: TextStyle -> TextStyle -> TextStyle
Ord,Int -> TextStyle -> ShowS
[TextStyle] -> ShowS
TextStyle -> String
(Int -> TextStyle -> ShowS)
-> (TextStyle -> String)
-> ([TextStyle] -> ShowS)
-> Show TextStyle
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> TextStyle -> ShowS
showsPrec :: Int -> TextStyle -> ShowS
$cshow :: TextStyle -> String
show :: TextStyle -> String
$cshowList :: [TextStyle] -> ShowS
showList :: [TextStyle] -> ShowS
Show,(forall x. TextStyle -> Rep TextStyle x)
-> (forall x. Rep TextStyle x -> TextStyle) -> Generic TextStyle
forall x. Rep TextStyle x -> TextStyle
forall x. TextStyle -> Rep TextStyle x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x. TextStyle -> Rep TextStyle x
from :: forall x. TextStyle -> Rep TextStyle x
$cto :: forall x. Rep TextStyle x -> TextStyle
to :: forall x. Rep TextStyle x -> TextStyle
Generic,TextStyle -> ()
(TextStyle -> ()) -> NFData TextStyle
forall a. (a -> ()) -> NFData a
$crnf :: TextStyle -> ()
rnf :: TextStyle -> ()
NFData,Typeable TextStyle
Typeable TextStyle =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> TextStyle -> c TextStyle)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c TextStyle)
-> (TextStyle -> Constr)
-> (TextStyle -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c TextStyle))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TextStyle))
-> ((forall b. Data b => b -> b) -> TextStyle -> TextStyle)
-> (forall r r'.
    (r -> r' -> r)
    -> r -> (forall d. Data d => d -> r') -> TextStyle -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r -> (forall d. Data d => d -> r') -> TextStyle -> r)
-> (forall u. (forall d. Data d => d -> u) -> TextStyle -> [u])
-> (forall u.
    Int -> (forall d. Data d => d -> u) -> TextStyle -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> TextStyle -> m TextStyle)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> TextStyle -> m TextStyle)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> TextStyle -> m TextStyle)
-> Data TextStyle
TextStyle -> Constr
TextStyle -> DataType
(forall b. Data b => b -> b) -> TextStyle -> TextStyle
forall a.
Typeable a =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u. Int -> (forall d. Data d => d -> u) -> TextStyle -> u
forall u. (forall d. Data d => d -> u) -> TextStyle -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> TextStyle -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> TextStyle -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> TextStyle -> m TextStyle
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> TextStyle -> m TextStyle
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c TextStyle
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> TextStyle -> c TextStyle
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c TextStyle)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TextStyle)
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> TextStyle -> c TextStyle
gfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> TextStyle -> c TextStyle
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c TextStyle
gunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c TextStyle
$ctoConstr :: TextStyle -> Constr
toConstr :: TextStyle -> Constr
$cdataTypeOf :: TextStyle -> DataType
dataTypeOf :: TextStyle -> DataType
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c TextStyle)
dataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c TextStyle)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TextStyle)
dataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c TextStyle)
$cgmapT :: (forall b. Data b => b -> b) -> TextStyle -> TextStyle
gmapT :: (forall b. Data b => b -> b) -> TextStyle -> TextStyle
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> TextStyle -> r
gmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> TextStyle -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> TextStyle -> r
gmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> TextStyle -> r
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> TextStyle -> [u]
gmapQ :: forall u. (forall d. Data d => d -> u) -> TextStyle -> [u]
$cgmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> TextStyle -> u
gmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> TextStyle -> u
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> TextStyle -> m TextStyle
gmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> TextStyle -> m TextStyle
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> TextStyle -> m TextStyle
gmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> TextStyle -> m TextStyle
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> TextStyle -> m TextStyle
gmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> TextStyle -> m TextStyle
Data)


{-|
Text font type used for stylized message rendering.
-}
data Font
  = SansSerif
  | Serif
  | Monospace
  | Handwriting
  | Fancy
  | NamedFont Text
  deriving (Font -> Font -> Bool
(Font -> Font -> Bool) -> (Font -> Font -> Bool) -> Eq Font
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: Font -> Font -> Bool
== :: Font -> Font -> Bool
$c/= :: Font -> Font -> Bool
/= :: Font -> Font -> Bool
Eq,Eq Font
Eq Font =>
(Font -> Font -> Ordering)
-> (Font -> Font -> Bool)
-> (Font -> Font -> Bool)
-> (Font -> Font -> Bool)
-> (Font -> Font -> Bool)
-> (Font -> Font -> Font)
-> (Font -> Font -> Font)
-> Ord Font
Font -> Font -> Bool
Font -> Font -> Ordering
Font -> Font -> Font
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
$ccompare :: Font -> Font -> Ordering
compare :: Font -> Font -> Ordering
$c< :: Font -> Font -> Bool
< :: Font -> Font -> Bool
$c<= :: Font -> Font -> Bool
<= :: Font -> Font -> Bool
$c> :: Font -> Font -> Bool
> :: Font -> Font -> Bool
$c>= :: Font -> Font -> Bool
>= :: Font -> Font -> Bool
$cmax :: Font -> Font -> Font
max :: Font -> Font -> Font
$cmin :: Font -> Font -> Font
min :: Font -> Font -> Font
Ord,Int -> Font -> ShowS
[Font] -> ShowS
Font -> String
(Int -> Font -> ShowS)
-> (Font -> String) -> ([Font] -> ShowS) -> Show Font
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
$cshowsPrec :: Int -> Font -> ShowS
showsPrec :: Int -> Font -> ShowS
$cshow :: Font -> String
show :: Font -> String
$cshowList :: [Font] -> ShowS
showList :: [Font] -> ShowS
Show,(forall x. Font -> Rep Font x)
-> (forall x. Rep Font x -> Font) -> Generic Font
forall x. Rep Font x -> Font
forall x. Font -> Rep Font x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cfrom :: forall x. Font -> Rep Font x
from :: forall x. Font -> Rep Font x
$cto :: forall x. Rep Font x -> Font
to :: forall x. Rep Font x -> Font
Generic,Font -> ()
(Font -> ()) -> NFData Font
forall a. (a -> ()) -> NFData a
$crnf :: Font -> ()
rnf :: Font -> ()
NFData,Typeable Font
Typeable Font =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> Font -> c Font)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c Font)
-> (Font -> Constr)
-> (Font -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c Font))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Font))
-> ((forall b. Data b => b -> b) -> Font -> Font)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Font -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Font -> r)
-> (forall u. (forall d. Data d => d -> u) -> Font -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> Font -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> Font -> m Font)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> Font -> m Font)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> Font -> m Font)
-> Data Font
Font -> Constr
Font -> DataType
(forall b. Data b => b -> b) -> Font -> Font
forall a.
Typeable a =>
(forall (c :: * -> *).
 (forall d b. Data d => c (d -> b) -> d -> c b)
 -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u. Int -> (forall d. Data d => d -> u) -> Font -> u
forall u. (forall d. Data d => d -> u) -> Font -> [u]
forall r r'.
(r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Font -> r
forall r r'.
(r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Font -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> Font -> m Font
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> Font -> m Font
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c Font
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> Font -> c Font
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c Font)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Font)
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> Font -> c Font
gfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> Font -> c Font
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c Font
gunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c Font
$ctoConstr :: Font -> Constr
toConstr :: Font -> Constr
$cdataTypeOf :: Font -> DataType
dataTypeOf :: Font -> DataType
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c Font)
dataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c Font)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Font)
dataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Font)
$cgmapT :: (forall b. Data b => b -> b) -> Font -> Font
gmapT :: (forall b. Data b => b -> b) -> Font -> Font
$cgmapQl :: forall r r'.
(r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Font -> r
gmapQl :: forall r r'.
(r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Font -> r
$cgmapQr :: forall r r'.
(r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Font -> r
gmapQr :: forall r r'.
(r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Font -> r
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> Font -> [u]
gmapQ :: forall u. (forall d. Data d => d -> u) -> Font -> [u]
$cgmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> Font -> u
gmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> Font -> u
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> Font -> m Font
gmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> Font -> m Font
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> Font -> m Font
gmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> Font -> m Font
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> Font -> m Font
gmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> Font -> m Font
Data)