Copyright | (c) OleksandrZhabenko 2020 |
---|---|
License | MIT |
Maintainer | olexandr543@yahoo.com |
Stability | Experimental |
Safe Haskell | None |
Language | Haskell2010 |
Languages.UniquenessPeriods.Vector.DataG
Description
Is a generalization of the DobutokO.Poetry.Data module
functionality from the dobutokO-poetry-general
package.
Synopsis
- type UniquenessG1T2 t t2 a b = (t2 b, Vector b, t a)
- data PreApp t a
- class Foldable t => UGG1 t a b where
- isPA :: PreApp t a -> Bool
- isK :: PreApp t a -> Bool
- data UniquenessG2 a b = UL2 (Vector a, b)
- type UniqG2T2 t t2 a b = UniquenessG2 (UniquenessG1T2 t t2 a b) (Vector (UniquenessG1T2 t t2 a b))
- get22 :: UniqG2T2 t t2 a b -> (Vector (UniquenessG1T2 t t2 a b), Vector (UniquenessG1T2 t t2 a b))
- data FuncRep a b c
- getAC :: FuncRep a b c -> a -> c
- isU1 :: FuncRep a b c -> Bool
- isD2 :: FuncRep a b c -> Bool
Documentation
type UniquenessG1T2 t t2 a b = (t2 b, Vector b, t 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). Both are used basically to control the behaviour of the functions.
data UniquenessG2 a b Source #
Instances
(Eq a, Eq b) => Eq (UniquenessG2 a b) Source # | |
Defined in Languages.UniquenessPeriods.Vector.DataG Methods (==) :: UniquenessG2 a b -> UniquenessG2 a b -> Bool # (/=) :: UniquenessG2 a b -> UniquenessG2 a b -> Bool # | |
(Show a, Show b, InsertLeft t a, Foldable t2, Show (t2 b), Show (t a)) => Show (UniquenessG2 (UniquenessG1T2 t t2 a b) (Vector (UniquenessG1T2 t t2 a b))) Source # | |
Defined in Languages.UniquenessPeriods.Vector.DataG Methods showsPrec :: Int -> UniquenessG2 (UniquenessG1T2 t t2 a b) (Vector (UniquenessG1T2 t t2 a b)) -> ShowS # show :: UniquenessG2 (UniquenessG1T2 t t2 a b) (Vector (UniquenessG1T2 t t2 a b)) -> String # showList :: [UniquenessG2 (UniquenessG1T2 t t2 a b) (Vector (UniquenessG1T2 t t2 a b))] -> ShowS # |
type UniqG2T2 t t2 a b = UniquenessG2 (UniquenessG1T2 t t2 a b) (Vector (UniquenessG1T2 t t2 a b)) Source #
get22 :: UniqG2T2 t t2 a b -> (Vector (UniquenessG1T2 t t2 a b), Vector (UniquenessG1T2 t t2 a b)) Source #
Is used to avoid significant code duplication.