| Copyright | (c) OleksandrZhabenko 2020 |
|---|---|
| License | MIT |
| Stability | Experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Languages.UniquenessPeriods.Vector.Data
Description
Maintainer : olexandr543@yahoo.com
Is a generalization of the DobutokO.Poetry.Data module
functionality from the dobutokO-poetry-general package.
Synopsis
- type UniquenessG1 a b = ([b], Vector b, [a])
- data PreApp a
- class UGG1 a b where
- type Preapp a = PreApp a
- isPA :: PreApp a -> Bool
- isK :: PreApp a -> Bool
- data UniquenessG a b
- type UniqG a b = UniquenessG [a] (Vector (UniquenessG1 a b))
- get2 :: UniqG a b -> (Maybe [[a]], Vector (UniquenessG1 a b))
- set2 :: (Maybe [[a]], Vector (UniquenessG1 a b)) -> UniqG a b
- isU :: UniqG a b -> Bool
- isUL :: UniqG a b -> Bool
Documentation
type UniquenessG1 a b = ([b], Vector b, [a]) Source #
The list in the PA variant represent the prepending [a] and the postpending one respectively. K constuctor actually means no prepending and
postpending (usually 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 Languages.UniquenessPeriods.Vector.Data Methods (==) :: UniquenessG a b -> UniquenessG a b -> Bool # (/=) :: UniquenessG a b -> UniquenessG a b -> Bool # | |
| (Show a, Show b) => Show (UniquenessG a (Vector (UniquenessG1 a b))) Source # | |
Defined in Languages.UniquenessPeriods.Vector.Data Methods showsPrec :: Int -> UniquenessG a (Vector (UniquenessG1 a b)) -> ShowS # show :: UniquenessG a (Vector (UniquenessG1 a b)) -> String # showList :: [UniquenessG a (Vector (UniquenessG1 a b))] -> ShowS # | |
type UniqG a b = UniquenessG [a] (Vector (UniquenessG1 a b)) Source #