Copyright | (c) OleksandrZhabenko 2020 |
---|---|
License | MIT |
Stability | Experimental |
Safe Haskell | None |
Language | Haskell2010 |
Maintainer : olexandr543@yahoo.com
Helps to order the 7 or less (in the first version Ukrainian) words (or their concatenations) to obtain (to some extent) suitable for poetry or music text. This module contains data types needed for some generalizations.
Synopsis
- type Uniqueness = ([Int], Vector Int, String)
- data PreApp a
- class G1 a b where
- type Preapp = PreApp Char
- isPA :: PreApp a -> Bool
- isK :: PreApp a -> Bool
- data UniquenessG a b
- type UniqG = UniquenessG String (Vector Uniqueness)
- get2 :: UniqG -> (Maybe [String], Vector Uniqueness)
- set2 :: (Maybe [String], Vector Uniqueness) -> UniqG
- isU :: UniqG -> Bool
- isUL :: UniqG -> Bool
Documentation
The list in the PA
variant represent the prepending String
and the postpending one respectively. K
constuctor actually means no prepending and
postpending of the text. Are used basically to control the behaviour of the functions.
data UniquenessG a b Source #
Is used to control whether to return data or only to print the needed information. The U
contstuctor corresponds to the information printing and UL
to
returning also data. The last one so can be further used.
Instances
(Eq b, Eq a) => Eq (UniquenessG a b) Source # | |
Defined in DobutokO.Poetry.Data (==) :: UniquenessG a b -> UniquenessG a b -> Bool # (/=) :: UniquenessG a b -> UniquenessG a b -> Bool # | |
Show (UniquenessG String (Vector Uniqueness)) Source # | |
Defined in DobutokO.Poetry.Data showsPrec :: Int -> UniquenessG String (Vector Uniqueness) -> ShowS # show :: UniquenessG String (Vector Uniqueness) -> String # showList :: [UniquenessG String (Vector Uniqueness)] -> ShowS # |
type UniqG = UniquenessG String (Vector Uniqueness) Source #