packages feed

lambdasound-1.1: lambdasound.cabal

cabal-version:      3.0
name:               lambdasound
version:            1.1
synopsis:           A libary for generating low-level sounds with high-level combinators
description:        'lambdasound' can generate all kinds of sounds, play them and save them as wav or pcm data.
                    Sound can be manipulated in both a low and high-level way. It is possible to 
                    operate on the samples of a sound. However, there are also higher-level combinators 
                    for various tasks, e.g. to facilitate sequential and parallel playing of sounds or to change the duration of a sound.
license:            MIT
license-file:       LICENSE
author:             Simon Reitinger
maintainer:         simre4775@gmail.com
copyright:          2023 Simon Reitinger
category:           Sound
build-type:         Simple
extra-doc-files:    CHANGELOG.md
homepage:           https://github.com/Simre1/lambdasound
bug-reports:        https://github.com/Simre1/lambdasound/issues

extra-source-files:
    README.md
    CHANGELOG.md
    cabal.project 
common warnings
    ghc-options: -Wall

library
    import:           warnings
    exposed-modules:  
        LambdaSound,
        LambdaSound.Sound,
        LambdaSound.Samples,
        LambdaSound.Effect,
        LambdaSound.Play,
        LambdaSound.Note,
        LambdaSound.Cache,
        LambdaSound.Plot,
        LambdaSound.Sampling,
        LambdaSound.Create,
        LambdaSound.Convolution,
        LambdaSound.Filter,
        LambdaSound.SaveAndLoad,
        LambdaSound.SaveAndLoad.RawSamples
    other-modules:
        LambdaSound.Sound.ComputeSound,
        LambdaSound.Sound.Types,
        Data.SomeStableName
    build-depends:    
        base >= 4.17.0.0 && < 5,
        ansi-terminal >= 1.0 && < 1.1,
        bytestring >= 0.11.4 && < 0.12,
        deepseq >= 1.4.8 && < 1.5,
        bytestring-to-vector >= 0.3.0 && < 0.4,
        vector >= 0.13.0 && < 0.14,
        transformers >= 0.5.6 && < 0.6,
        directory >= 1.3.7 && < 1.4,
        filepath >= 1.4.2 && < 1.5,
        hashable >= 1.4.3 && < 1.5,
        text >= 2.0.2 && < 2.1,
        hashtables >= 1.3.1 && < 1.4,
        massiv >= 1.0.4 && < 1.1,
        random >= 1.2.1 && < 1.3,
        proteaaudio-sdl >= 0.9.3 && < 1.1,
        wave >= 0.2.0 && < 0.3,
        zlib >= 0.6.3 && < 0.7
    hs-source-dirs:   src
    default-extensions:
        DuplicateRecordFields,
        OverloadedRecordDot,
        NoFieldSelectors,
        DataKinds,
        TypeFamilies
    default-language: GHC2021
    ghc-options: -O2

executable example1
    import:           warnings
    main-is:          Example1.hs
    build-depends:
        base ^>=4.17.0.0,
        lambdasound
    default-extensions:
        DataKinds
    hs-source-dirs:   example
    default-language: GHC2021

executable example2
    import:           warnings
    main-is:          Example2.hs
    build-depends:
        base ^>=4.17.0.0,
        lambdasound
    default-extensions:
        DataKinds
    hs-source-dirs:   example
    default-language: GHC2021

executable example3
    import:           warnings
    main-is:          Example3.hs
    build-depends:
        base ^>=4.17.0.0,
        lambdasound
    default-extensions:
        DataKinds
    hs-source-dirs:   example
    default-language: GHC2021

executable lambdasound-profile
    import:           warnings
    main-is:          Main.hs
    build-depends:
        base ^>=4.17.0.0,
        lambdasound
    default-extensions:
        DataKinds
    hs-source-dirs:   profile
    default-language: GHC2021
    ghc-options: -O2

test-suite lambdasound-test
    import:           warnings
    default-language: GHC2021
    type:             exitcode-stdio-1.0
    hs-source-dirs:   test
    main-is:          Main.hs
    default-extensions:
        DataKinds
    build-depends:
        base >= 4.17.0.0 && < 5,
        lambdasound,
        tasty >= 1.4 && < 1.5,
        tasty-hunit >= 0.10.1 && < 0.11,
        falsify >= 0.1.1 && < 0.2,
        massiv >= 1.0.4 && < 1.1

benchmark lambdasound-bench
    import:           warnings
    default-language: GHC2021
    type:             exitcode-stdio-1.0
    hs-source-dirs:   bench
    main-is:          Main.hs
    default-extensions:
        DataKinds
    build-depends:
        base >= 4.17.0.0 && < 5,
        lambdasound,
        tasty >= 1.4 && < 1.5,
        tasty-bench >= 0.3.5 && < 0.4,
        massiv
    ghc-options: -O2

source-repository head
  type:     git
  location: https://github.com/Simre1/lambdasound