packages feed

mmsyn7s (empty) → 0.1.0.0

raw patch · 6 files changed

+115/−0 lines, 6 filesdep +basedep +mmsyn6ukrdep +vectorsetup-changed

Dependencies added: base, mmsyn6ukr, vector

Files

+ CHANGELOG.md view
@@ -0,0 +1,5 @@+# Revision history for mmsyn7s++## 0.1.0.0 -- 2020-01-09++* First version. Released on an unsuspecting world.
+ LICENSE view
@@ -0,0 +1,20 @@+Copyright (c) 2020 OleksandrZhabenko++Permission is hereby granted, free of charge, to any person obtaining+a copy of this software and associated documentation files (the+"Software"), to deal in the Software without restriction, including+without limitation the rights to use, copy, modify, merge, publish,+distribute, sublicense, and/or sell copies of the Software, and to+permit persons to whom the Software is furnished to do so, subject to+the following conditions:++The above copyright notice and this permission notice shall be included+in all copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ MMSyn7s.hs view
@@ -0,0 +1,31 @@+-- |+-- Module      :  MMSyn7s+-- Copyright   :  (c) OleksandrZhabenko 2020+-- License     :  MIT+--+-- Maintainer  :  olexandr543@yahoo.com+--+-- A program and a library that show a sorted list of the Ukrainian sounds +-- representations that can be used by mmsyn7 series of programs+--++module MMSyn7s where++import qualified Data.Vector as V+import Data.List (sort, nub)+import Melodics.Ukrainian (convertToProperUkrainian)+import System.Environment (getArgs)+++-- | Function takes Ukrainian text being written without quotes as command line arguments and prints the sorted list of the Ukrainian sounds representations +-- that can be used further in mmsyn7 series of programs.+main7s :: IO ()+main7s = do +  texts <- getArgs+  putStrLn ""+  putStrLn . show . sort . nub . V.toList . V.filter (\x -> x /= "-" && x /= "1" && x /= "0") . convertToProperUkrainian . unwords $ texts++-- | Function takes Ukrainian text being a @String@ and returns a sorted list of the Ukrainian sounds representations that can be used further in mmsyn7 series of programs.+show7s :: String -> [String]+show7s xs = sort . nub . V.toList . V.filter (\x -> x /= "-" && x /= "1" && x /= "0") . convertToProperUkrainian $ xs+  
+ Main.hs view
@@ -0,0 +1,24 @@+-- |+-- Module      :  MMSyn7s+-- Copyright   :  (c) OleksandrZhabenko 2020+-- License     :  MIT+--+-- Maintainer  :  olexandr543@yahoo.com+--+-- A program and a library that show a sorted list of the Ukrainian sounds +-- representations that can be used by mmsyn7 series of programs+--++module Main where++import MMSyn7s++-- | The main function used in the executable @mmsyn7s@.+main :: IO ()+main = do +  putStrLn "You could specify the Ukrainian text now as the command line arguments by simply adding the Ukrainian text without initial quotes as a command line arguments! "+  putStrLn ""+  putStrLn "Now the program will output the list of Ukrainian sounds representations used by the mmsyn6ukr and mmsyn7 programs. "+  putStrLn ""+  main7s+  
+ Setup.hs view
@@ -0,0 +1,2 @@+import Distribution.Simple+main = defaultMain
+ mmsyn7s.cabal view
@@ -0,0 +1,33 @@+-- Initial mmsyn7s.cabal generated by cabal init.  For further+-- documentation, see http://haskell.org/cabal/users-guide/++name:                mmsyn7s+version:             0.1.0.0+synopsis:            Shows a sorted list of the Ukrainian sounds representations that can be used by mmsyn7 series of programs+description:         A program and a library that show a sorted list of the Ukrainian sounds representations that can be used by mmsyn7 series of programs+homepage:            https://hackage.haskell.org/package/mmsyn7s+license:             MIT+license-file:        LICENSE+author:              (c) OleksandrZhabenko 2020+maintainer:          olexandr543@yahoo.com+-- copyright:+category:            Language+build-type:          Simple+extra-source-files:  CHANGELOG.md+cabal-version:       >=1.10++library+  exposed-modules:     MMSyn7s, Main+  -- other-modules:+  -- other-extensions:+  build-depends:       base >=4.7 && <4.14, vector >=0.11 && <0.14, mmsyn6ukr >=0.6.2 && <1+  -- hs-source-dirs:+  default-language:    Haskell2010++executable mmsyn7s+  main-is:             Main.hs+  -- other-modules:+  -- other-extensions:+  build-depends:       base >=4.7 && <4.14, vector >=0.11 && <0.14, mmsyn6ukr >=0.6.2 && <1+  -- hs-source-dirs:+  default-language:    Haskell2010