packages feed

language-Modula2-0.1: language-Modula2.cabal

cabal-version:       2.4

name:                language-Modula2
version:             0.1
synopsis:            Parser, pretty-printer, and more for the Modula-2 programming language
description:
   The library and the executable supports two versions of the Modula-2 programming language: as described by the
   orginal language report and as standardized by the ISO.
homepage:            https://github.com/blamario/language-Modula2
bug-reports:         https://github.com/blamario/language-Modula2/issues
license:             GPL-3.0-or-later
license-file:        LICENSE
author:              Mario Blažević
maintainer:          blamario@protonmail.com
copyright:           (c) 2020 Mario Blažević
category:            Language
build-type:          Simple
extra-source-files:  README.md, CHANGELOG.md, examples/**/*.def, examples/**/*.DEF, examples/**/*.mod, examples/**/*.MOD

library
  exposed-modules:     Language.Modula2,
                       Language.Modula2.Abstract, Language.Modula2.AST,
                       Language.Modula2.Grammar, Language.Modula2.Pretty, Language.Modula2.ConstantFolder,
                       Language.Modula2.ISO.Abstract, Language.Modula2.ISO.AST,
                       Language.Modula2.ISO.Grammar, Language.Modula2.ISO.Pretty, Language.Modula2.ISO.ConstantFolder
  -- other-modules:
  build-depends:       base >= 4.7 && < 5, text < 1.3, containers >= 0.5 && < 1.0, filepath < 1.5, directory < 1.4,
                       parsers >= 0.12.7 && < 0.13, input-parsers < 0.2, prettyprinter >= 1.2.1 && < 1.7,
                       rank2classes >= 1.3 && < 1.5, grammatical-parsers >= 0.5 && < 0.6, deep-transformations < 0.2,
                       template-haskell >= 2.11 && < 2.17,
                       language-oberon >= 0.3 && < 0.4
  hs-source-dirs:      src
  default-language:    Haskell2010

executable parse
  main-is:             app/Parse.hs
  -- other-modules:       
  other-extensions:    RankNTypes, RecordWildCards, ScopedTypeVariables, FlexibleInstances, DeriveDataTypeable
  build-depends:       base >= 4.7 && < 5, text < 1.3, either == 5.*, containers >= 0.5 && < 1.0,
                       repr-tree-syb < 0.2, filepath < 1.5, prettyprinter,
                       rank2classes, grammatical-parsers, deep-transformations < 0.2,
                       optparse-applicative,
                       language-oberon >= 0.3 && < 0.4,
                       language-Modula2
  default-language:    Haskell2010

test-suite             examples
  type:                exitcode-stdio-1.0
  build-depends:       base >= 4.7 && < 5, text < 1.3, grammatical-parsers,
                       either == 5.*, directory < 2, filepath < 1.5, prettyprinter,
                       deep-transformations < 0.2,
                       tasty >= 0.7, tasty-hunit,
                       language-oberon >= 0.3 && < 0.4,
                       language-Modula2
  main-is:             test/Test.hs
  default-language:    Haskell2010