dobutokO-poetry-general-0.1.0.0: Helps to order the 7 or less words (first of all the Ukrainian ones) to obtain somewhat suitable for poetry or music text

Copyright(c) OleksandrZhabenko 2020
LicenseMIT
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010

DobutokO.Poetry.Data

Description

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

Documentation

data PreApp a Source #

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.

Constructors

K 
PA [a] [a] 
Instances
Eq a => Eq (PreApp a) Source # 
Instance details

Defined in DobutokO.Poetry.Data

Methods

(==) :: PreApp a -> PreApp a -> Bool #

(/=) :: PreApp a -> PreApp a -> Bool #

G1 (PreApp Char) Char Source # 
Instance details

Defined in DobutokO.Poetry.Data

class G1 a b where Source #

Minimal complete definition

get1m, get2m, preapp, setm

Methods

get1m :: a -> [b] Source #

get2m :: a -> [b] Source #

getm :: Bool -> a -> [b] Source #

preapp :: a -> [[b]] -> [[b]] Source #

setm :: [b] -> [b] -> a Source #

Instances
G1 (PreApp Char) Char Source # 
Instance details

Defined in DobutokO.Poetry.Data

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.

Constructors

U b 
UL ([a], b) 

get2 :: UniqG -> (Maybe [String], Vector Uniqueness) Source #

Decomposes the data type UniqG into its components. The inverse to the set2.

set2 :: (Maybe [String], Vector Uniqueness) -> UniqG Source #

Compose the data type UniqG from its components. The inverse to the get2.