packages feed

mida-1.0.1: mida.cabal

--
-- Cabal config for MIDA.
--
-- Copyright © 2014–2016 Mark Karpov
--
-- MIDA is free software: you can redistribute it and/or modify it under the
-- terms of the GNU General Public License as published by the Free Software
-- Foundation, either version 3 of the License, or (at your option) any
-- later version.
--
-- MIDA is distributed in the hope that it will be useful, but WITHOUT ANY
-- WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-- FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
-- details.
--
-- You should have received a copy of the GNU General Public License along
-- with this program. If not, see <http://www.gnu.org/licenses/>.

name:                 mida
version:              1.0.1
synopsis:             Language for algorithmic generation of MIDI files
description:

  MIDA is a minimalistic language for algorithmic generation of MIDI
  files. MIDA is not interactive in sense that you cannot control result of
  its activity in real time, it is intended for producers and should be used
  with a DAW. MIDA can help you create variative elements in your music in a
  very simple way. Since MIDI can control a lot of different instruments,
  power of MIDA is truly great.

  Main reason for MIDA development is to create software tool that can be
  used in such a way that does not change established workflow, so people
  could use familiar plugins and software instruments.

  The core concept of MIDA is building systems with complex behaviors from
  very basic and easy-to-understand elements and powerful means of their
  composition.

  Currently MIDA can be used to translate source files into .mid files, and
  also in interactive mode that will help you to understand how MIDA
  language works.

  See MIDA Manual for more information.

homepage:             https://github.com/mrkkrp/mida
license:              GPL-3
license-file:         LICENSE.md
author:               Mark Karpov
maintainer:           Mark Karpov
copyright:            Copyright © 2014–2016 Mark Karpov
category:             Language
build-type:           Simple
extra-source-files:   README.md, CHANGELOG.md
cabal-version:        >= 1.10

flag dev
  description:        Turn on development settings.
  manual:             True
  default:            False

library
  hs-source-dirs:     src
  if flag(dev)
    ghc-options:      -O2 -Wall -Werror
  else
    ghc-options:      -O2 -Wall
  ghc-prof-options:   -O2 -Wall -prof -fprof-cafs -rtsopts
  build-depends:      HCodecs                >= 0.5
                    , base                   >= 4.8 && < 5
                    , containers             >= 0.5.5.1
                    , exceptions             >= 0.8
                    , haskeline              >= 0.7.1.3
                    , megaparsec             >= 4.2
                    , mtl                    >= 2.1.3.1
                    , random
                    , text                   >= 1.2.0.4
                    , tf-random              >= 0.5
                    , transformers           >= 0.2.0.0
  default-extensions: FlexibleContexts
                    , FlexibleInstances
                    , OverloadedStrings
                    , TupleSections
  exposed-modules:    Mida.Language
                    , Mida.Language.Element
                    , Mida.Language.Environment
                    , Mida.Language.Eval
                    , Mida.Language.SyntaxTree
                    , Mida.Midi
                    , Mida.Representation
                    , Mida.Representation.Parser
                    , Mida.Representation.Show
  other-modules:      Mida.Representation.Base
  default-language:   Haskell2010

executable mida
  main-is:            Main.hs
  hs-source-dirs:     src
  other-modules:      Mida.Interaction
  if flag(dev)
    ghc-options:      -O2 -Wall -Werror
  else
    ghc-options:      -O2 -Wall
  ghc-prof-options:   -O2 -Wall -prof -fprof-cafs -rtsopts
  build-depends:      HCodecs                >= 0.5
                    , aeson                  >= 0.7
                    , base                   >= 4.8 && < 5
                    , containers             >= 0.5.5.1
                    , data-default           >= 0.5.3
                    , exceptions             >= 0.8
                    , filepath               >= 1.3.0.2
                    , formatting             >= 6.2
                    , haskeline              >= 0.7.1.3
                    , megaparsec             >= 4.2
                    , mida                   >= 1.0.1
                    , mtl                    >= 2.1.3.1
                    , optparse-applicative   >= 0.11.0.2
                    , path                   >= 0.5.3
                    , path-io                >= 0.3.1
                    , process                >= 1.2.0.0
                    , random
                    , text                   >= 1.2.0.4
                    , tf-random              >= 0.5
                    , transformers           >= 0.2.0.0
                    , yaml                   >= 0.8.15.1
  default-extensions: FlexibleContexts
                    , FlexibleInstances
                    , OverloadedStrings
                    , RecordWildCards
                    , TupleSections
  other-modules:      Mida.Configuration
                    , Mida.Interaction
                    , Mida.Interaction.Base
                    , Mida.Interaction.Commands
                    , Mida.Language
                    , Mida.Language.Element
                    , Mida.Language.Environment
                    , Mida.Language.Eval
                    , Mida.Language.SyntaxTree
                    , Mida.Midi
                    , Mida.Representation
                    , Mida.Representation.Base
                    , Mida.Representation.Parser
                    , Mida.Representation.Show
                    , Paths_mida
  default-language:   Haskell2010

test-suite tests
  main-is:            Main.hs
  hs-source-dirs:     tests
  type:               exitcode-stdio-1.0
  if flag(dev)
    ghc-options:      -O2 -Wall -Werror
  else
    ghc-options:      -O2 -Wall
  default-language:   Haskell2010
  build-depends:      HCodecs                    >= 0.5
                    , QuickCheck                 >= 2.4 && < 3
                    , base                       >= 4.8 && < 5
                    , containers                 >= 0.5.5.1
                    , megaparsec                 >= 4.2
                    , mida                       >= 1.0.1
                    , mtl                        >= 2.1.3.1
                    , random
                    , test-framework             >= 0.4 && < 1
                    , test-framework-quickcheck2 >= 0.3 && < 0.4
                    , text                       >= 1.2.0.4
                    , tf-random                  >= 0.5
                    , transformers               >= 0.2.0.0

source-repository head
  type:               git
  location:           git://github.com/mrkkrp/mida.git