dobutokO2-0.26.0.0: A program and a library to create experimental music from a mono audio and a Ukrainian text

Copyright(c) OleksandrZhabenko 2020
LicenseMIT
StabilityExperimental
Safe HaskellNone
LanguageHaskell2010

DobutokO.Sound.ParseList

Description

Maintainer : olexandr543@yahoo.com

A program and a library to create experimental music from a mono audio and a Ukrainian text.

Synopsis

Documentation

canBePreParseV :: Vector String -> Bool Source #

Predicate to check whether a Vector does not contain round parentheses or dash (a minus sign) as its elements. Is used internally in the parseStoLInts function to avoid lists with negative elements.

parseV :: Int -> Vector String -> Maybe [Int] Source #

Notification. Uses an Int limitation to avoid infinite lists. All arguments must be not negative.

parseVInf :: Vector String -> Maybe [Int] Source #

From the 0.19.0.0 version. Can be used to parse also into infinite lists.

parseStoLInts :: Int -> String -> [Int] Source #

Parses a String being a list of Ints written with Haskell rules, e. g. "[1..]", "[2,4..45]", "[3,5,6,7,8,3]" etc. into a list of Int. If it is not possible or list is empty, returns []. Preceding whitespaces are ignored. An Int argument is used as a delimiter to avoid infinite lists.