Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Synopsis
- data Horizontal a = Horizontal {}
- data Vertical a = Vertical {}
- data Parts a = Parts (Vertical a) (Horizontal a)
- simple :: Parts Bool -> Char
- data Weight
- weighted :: Parts Weight -> Char
- data Directions a = Directions {
- vertical, horizontal :: a
- double :: Directions Bool -> Parts Bool -> Char
- doubleMaybe :: Directions Bool -> Parts Bool -> Maybe Char
Documentation
data Horizontal a Source #
Instances
Instances
Functor Vertical Source # | |
Applicative Vertical Source # | |
Foldable Vertical Source # | |
Defined in Data.Char.Frame fold :: Monoid m => Vertical m -> m # foldMap :: Monoid m => (a -> m) -> Vertical a -> m # foldr :: (a -> b -> b) -> b -> Vertical a -> b # foldr' :: (a -> b -> b) -> b -> Vertical a -> b # foldl :: (b -> a -> b) -> b -> Vertical a -> b # foldl' :: (b -> a -> b) -> b -> Vertical a -> b # foldr1 :: (a -> a -> a) -> Vertical a -> a # foldl1 :: (a -> a -> a) -> Vertical a -> a # elem :: Eq a => a -> Vertical a -> Bool # maximum :: Ord a => Vertical a -> a # minimum :: Ord a => Vertical a -> a # | |
Traversable Vertical Source # | |
Eq a => Eq (Vertical a) Source # | |
Show a => Show (Vertical a) Source # | |
Semigroup a => Semigroup (Vertical a) Source # | |
Monoid a => Monoid (Vertical a) Source # | |
Parts (Vertical a) (Horizontal a) |
Instances
Functor Parts Source # | |
Applicative Parts Source # | |
Foldable Parts Source # | |
Defined in Data.Char.Frame fold :: Monoid m => Parts m -> m # foldMap :: Monoid m => (a -> m) -> Parts a -> m # foldr :: (a -> b -> b) -> b -> Parts a -> b # foldr' :: (a -> b -> b) -> b -> Parts a -> b # foldl :: (b -> a -> b) -> b -> Parts a -> b # foldl' :: (b -> a -> b) -> b -> Parts a -> b # foldr1 :: (a -> a -> a) -> Parts a -> a # foldl1 :: (a -> a -> a) -> Parts a -> a # elem :: Eq a => a -> Parts a -> Bool # maximum :: Ord a => Parts a -> a # minimum :: Ord a => Parts a -> a # | |
Traversable Parts Source # | |
Eq a => Eq (Parts a) Source # | |
Show a => Show (Parts a) Source # | |
Semigroup a => Semigroup (Parts a) Source # | |
Monoid a => Monoid (Parts a) Source # | |
data Directions a Source #
Directions | |
|
Instances
double :: Directions Bool -> Parts Bool -> Char Source #
This function is not total because half-width and half-height double bars are missing.
doubleMaybe :: Directions Bool -> Parts Bool -> Maybe Char Source #