packages feed

language-oberon-0.3: language-oberon.cabal

-- Initial language-oberon.cabal generated by cabal init.  For further 
-- documentation, see http://haskell.org/cabal/users-guide/

name:                language-oberon
version:             0.3
synopsis:            Parser, pretty-printer, and more for the Oberon programming language
description:
   The library and the executable support both the original Oberon and the Oberon-2 programming language, as described
   in the respective <http://www.ethoberon.ethz.ch/compiler/index.html#report language reports>.
   .
   The original purpose for the library was to be a test of the underlying
   <http://hackage.haskell.org/package/grammatical-parsers grammatical-parsers> library. The experiment succeeded, so
   the package can be used in practice.

homepage:            https://github.com/blamario/language-oberon
bug-reports:         https://github.com/blamario/language-oberon/issues
license:             GPL-3
license-file:        LICENSE
author:              Mario Blažević
maintainer:          blamario@protonmail.com
copyright:           (c) 2018 Mario Blažević
category:            Language
build-type:          Simple
extra-source-files:  README.md, ChangeLog.md, examples/AGRS/*.Def, examples/AGRS/*.Mod
cabal-version:       >=1.10

library
  hs-source-dirs:       src
  exposed-modules:      Language.Oberon,
                        Language.Oberon.Abstract, Language.Oberon.AST, Language.Oberon.ConstantFolder,
                        Language.Oberon.Grammar, Language.Oberon.Pretty, Language.Oberon.Reserializer,
                        Language.Oberon.Resolver, Language.Oberon.TypeChecker
  build-depends:        base >= 4.12 && < 5, base-orphans >= 0.8.2 && < 1.0,
                        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.8, either == 5.*,
                        rank2classes >= 1.3 && < 1.5, grammatical-parsers >= 0.5 && < 0.6, deep-transformations < 0.2,
                        transformers == 0.5.*,
                        template-haskell >= 2.11 && < 2.17
  default-language:     Haskell2010

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

test-suite             examples
  type:                exitcode-stdio-1.0
  build-depends:       base >= 4.12 && < 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
  main-is:             test/Test.hs
  default-language:    Haskell2010