| Maintainer | hapytexeu+gh@gmail.com |
|---|---|
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Data.Char.Core
Description
This module defines data structures that are used in other modules, for example to rotate the characters.
Possible rotations
data Orientation Source #
The possible orientations of a unicode character, these can be horizontal, or vertical.
Constructors
| Horizontal | Horizontal orientation. |
| Vertical | Vertical orientation. |
Instances
Possible rotations of a unicode character if that character can be rotated over 0, 90, 180, and 270 degrees.
Constructors
| R0 | No rotation. |
| R90 | Rotation over 90 degrees. |
| R180 | Rotation over 180 degrees. |
| R270 | Rotation over 270 degrees. |
Instances
| Bounded Rotate90 Source # | |
| Enum Rotate90 Source # | |
| Eq Rotate90 Source # | |
| Ord Rotate90 Source # | |
Defined in Data.Char.Core | |
| Read Rotate90 Source # | |
| Show Rotate90 Source # | |
| Arbitrary Rotate90 Source # | |
Rotated objects
A data type that specifies that an item has been given an orientation.
Constructors
| Oriented | |
Fields
| |
Instances
| Functor Oriented Source # | |
| Foldable Oriented Source # | |
Defined in Data.Char.Core Methods fold :: Monoid m => Oriented m -> m # foldMap :: Monoid m => (a -> m) -> Oriented a -> m # foldr :: (a -> b -> b) -> b -> Oriented a -> b # foldr' :: (a -> b -> b) -> b -> Oriented a -> b # foldl :: (b -> a -> b) -> b -> Oriented a -> b # foldl' :: (b -> a -> b) -> b -> Oriented a -> b # foldr1 :: (a -> a -> a) -> Oriented a -> a # foldl1 :: (a -> a -> a) -> Oriented a -> a # elem :: Eq a => a -> Oriented a -> Bool # maximum :: Ord a => Oriented a -> a # minimum :: Ord a => Oriented a -> a # | |
| Traversable Oriented Source # | |
| Arbitrary1 Oriented Source # | |
Defined in Data.Char.Core Methods liftArbitrary :: Gen a -> Gen (Oriented a) # liftShrink :: (a -> [a]) -> Oriented a -> [Oriented a] # | |
| Eq a => Eq (Oriented a) Source # | |
| Ord a => Ord (Oriented a) Source # | |
| Read a => Read (Oriented a) Source # | |
| Show a => Show (Oriented a) Source # | |
| Arbitrary a => Arbitrary (Oriented a) Source # | |
Ligating
Specify if one should ligate, or not. When litigation is done
characters that are normally written in two (or more) characters
are combined in one character. For example Ⅲ instead of ⅠⅠⅠ.
Constructors
| Ligate | A ligate operation is performed on the characters. |
| NoLigate | No ligate operation is performed on the charaters. |