File: copilot.cabal

package info (click to toggle)
haskell-copilot 4.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 164 kB
  • sloc: haskell: 631; makefile: 6
file content (244 lines) | stat: -rw-r--r-- 7,309 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
name:                copilot
version:             4.3
cabal-version:       >= 1.10
license:             BSD3
license-file:        LICENSE
author:              Frank Dedden, Nis Nordby Wegmann, Lee Pike, Robin Morisset, Sebastian Niller, Alwyn Goodloe, Ivan Perez
synopsis:            A stream DSL for writing embedded C programs.
build-type:          Simple
maintainer:          Ivan Perez <ivan.perezdominguez@nasa.gov>
category:            Language, Embedded
homepage:            https://copilot-language.github.io
bug-reports:         https://github.com/Copilot-Language/copilot/issues
stability:           Experimental
description:
  Copilot is a stream-based runtime verification framework implemented as an
  embedded domain-specific language (EDSL) in Haskell. Programs can be
  interpreted for testing, or translated into C99 code to be incorporated in a
  project, or as a standalone application. The C99 backend output is constant
  in memory and time, making it suitable for systems with hard realtime
  requirements.
  .
  This package is the main entry-point for using Copilot.
  .
  A tutorial, examples, and other information are available at
  <https://copilot-language.github.io>.

x-curation: uncurated

extra-source-files:
  README.md
  CHANGELOG

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

flag examples
    description: Enable examples
    default: False
    manual: True

library
    hs-source-dirs: src
    default-language:  Haskell2010
    ghc-options:
      -Wall
      -fno-warn-orphans
    build-depends:
                       base                  >= 4.9  && < 5
                     , optparse-applicative  >= 0.14 && < 0.19
                     , directory             >= 1.3  && < 1.4
                     , filepath              >= 1.4  && < 1.6

                     , copilot-core          >= 4.3 && < 4.4
                     , copilot-theorem       >= 4.3 && < 4.4
                     , copilot-language      >= 4.3 && < 4.4
                     , copilot-libraries     >= 4.3 && < 4.4
                     , copilot-c99           >= 4.3 && < 4.4
                     , copilot-prettyprinter >= 4.3 && < 4.4


    exposed-modules: Language.Copilot, Language.Copilot.Main

executable what4-propositional
    main-is:                Propositional.hs
    hs-source-dirs:         examples/what4
    build-depends:          base
                          , copilot
                          , copilot-theorem
    default-language:       Haskell2010
    if flag(examples)
      buildable: True
    else
      buildable: False

executable what4-arithmetic
    main-is:                Arithmetic.hs
    hs-source-dirs:         examples/what4
    build-depends:          base
                          , copilot
                          , copilot-theorem
    default-language:       Haskell2010
    if flag(examples)
      buildable: True
    else
      buildable: False

executable what4-arithmetic-counterexamples
    main-is:                ArithmeticCounterExamples.hs
    hs-source-dirs:         examples/what4
    build-depends:          base
                          , containers
                          , copilot
                          , copilot-theorem
    default-language:       Haskell2010
    if flag(examples)
      buildable: True
    else
      buildable: False

executable what4-structs
    main-is:                Structs.hs
    hs-source-dirs:         examples/what4
    build-depends:          base
                          , copilot
                          , copilot-theorem
    default-language:       Haskell2010
    if flag(examples)
      buildable: True
    else
      buildable: False

executable wcv
    main-is:            WCV.hs
    hs-source-dirs:     examples
    build-depends:      base        >= 4.9  && < 5
                      , copilot
                      , copilot-core
                      , copilot-theorem
    default-language:   Haskell2010
    if flag(examples)
      buildable: True
    else
      buildable: False

executable addmult
    main-is:            AddMult.hs
    hs-source-dirs:     examples
    build-depends:      base        >= 4.9  && < 5
                      , copilot
                      , copilot-core
                      , copilot-theorem
    default-language:   Haskell2010
    if flag(examples)
      buildable: True
    else
      buildable: False

executable array
    main-is:            Array.hs
    hs-source-dirs:     examples
    build-depends:      base        >= 4.9  && < 5
                      , copilot
    default-language:   Haskell2010
    if flag(examples)
      buildable: True
    else
      buildable: False

executable cast
    main-is:            Cast.hs
    hs-source-dirs:     examples
    build-depends:      base        >= 4.9  && < 5
                      , copilot
    default-language:   Haskell2010
    if flag(examples)
      buildable: True
    else
      buildable: False

executable clock
    main-is:            Clock.hs
    hs-source-dirs:     examples
    build-depends:      base              >= 4.9  && < 5
                      , copilot
                      , copilot-libraries
                      , copilot-core
                      , copilot-theorem
    default-language:   Haskell2010
    if flag(examples)
      buildable: True
    else
      buildable: False

executable counter
    main-is:            Counter.hs
    hs-source-dirs:     examples
    build-depends:      base              >= 4.9  && < 5
                      , copilot
                      , copilot-c99
    default-language:   Haskell2010
    if flag(examples)
      buildable: True
    else
      buildable: False

executable engine
    main-is:            Engine.hs
    hs-source-dirs:     examples
    build-depends:      base              >= 4.9  && < 5
                      , copilot
    default-language:   Haskell2010
    if flag(examples)
      buildable: True
    else
      buildable: False

executable heater
    main-is:            Heater.hs
    hs-source-dirs:     examples
    build-depends:      base              >= 4.9  && < 5
                      , copilot
                      , copilot-c99
    default-language:   Haskell2010
    if flag(examples)
      buildable: True
    else
      buildable: False

executable structs
    main-is:            Structs.hs
    hs-source-dirs:     examples
    build-depends:      base              >= 4.9  && < 5
                      , copilot
                      , copilot-c99
    default-language:   Haskell2010
    if flag(examples)
      buildable: True
    else
      buildable: False

executable structs-update-field
    main-is:            StructsUpdateField.hs
    hs-source-dirs:     examples
    build-depends:      base              >= 4.9  && < 5
                      , copilot
                      , copilot-c99
    default-language:   Haskell2010
    if flag(examples)
      buildable: True
    else
      buildable: False

executable voting
    main-is:            Voting.hs
    hs-source-dirs:     examples
    build-depends:      base              >= 4.9  && < 5
                      , copilot
    default-language:   Haskell2010
    if flag(examples)
      buildable: True
    else
      buildable: False