packages feed

copilot-c99-3.20: copilot-c99.cabal

cabal-version             : >= 1.10
name                      : copilot-c99
version                   : 3.20
synopsis                  : A compiler for Copilot targeting C99.
description               :
  This package is a back-end from Copilot to C.
  .
  Copilot is a stream (i.e., infinite lists) domain-specific language (DSL) in
  Haskell that compiles into embedded C.  Copilot contains an interpreter,
  multiple back-end compilers, and other verification tools.
  .
  A tutorial, examples, and other information are available at
  <https://copilot-language.github.io>.

license                   : BSD3
license-file              : LICENSE
maintainer                : Ivan Perez <ivan.perezdominguez@nasa.gov>
homepage                  : https://copilot-language.github.io
bug-reports               : https://github.com/Copilot-Language/copilot/issues
stability                 : Experimental
category                  : Language, Embedded
build-type                : Simple
extra-source-files        : README.md
                          , CHANGELOG

author                    : Frank Dedden
                          , Alwyn Goodloe
                          , Ivan Perez

x-curation: uncurated

source-repository head
    type:       git
    location:   https://github.com/Copilot-Language/copilot.git
    subdir:     copilot-c99

library
  default-language        : Haskell2010
  hs-source-dirs          : src

  ghc-options             : -Wall
  build-depends           : base                >= 4.9 && < 5
                          , directory           >= 1.3 && < 1.4
                          , filepath            >= 1.4 && < 1.5
                          , mtl                 >= 2.2 && < 2.4
                          , pretty              >= 1.1 && < 1.2

                          , copilot-core        >= 3.20  && < 3.21
                          , language-c99        >= 0.2.0 && < 0.3
                          , language-c99-simple >= 0.3   && < 0.4

  exposed-modules         : Copilot.Compile.C99

  other-modules          : Copilot.Compile.C99.Expr
                         , Copilot.Compile.C99.Type
                         , Copilot.Compile.C99.Error
                         , Copilot.Compile.C99.Name
                         , Copilot.Compile.C99.CodeGen
                         , Copilot.Compile.C99.External
                         , Copilot.Compile.C99.Compile
                         , Copilot.Compile.C99.Settings

test-suite unit-tests
  type:
    exitcode-stdio-1.0

  main-is:
    Main.hs

  other-modules:
   Test.Copilot.Compile.C99

  build-depends:
      base
    , directory
    , HUnit
    , QuickCheck
    , pretty
    , process
    , random
    , test-framework
    , test-framework-hunit
    , test-framework-quickcheck2
    , unix

    , copilot-core
    , copilot-c99

  hs-source-dirs:
    tests

  default-language:
    Haskell2010

  ghc-options:
    -Wall