Skip to content

Commit

Permalink
examples: add license and update cabal file
Browse files Browse the repository at this point in the history
  • Loading branch information
Connor Baker committed Feb 2, 2024
1 parent 344176a commit e5d45ca
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 27 deletions.
62 changes: 35 additions & 27 deletions examples/HaskellR-examples.cabal
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
cabal-version: 2.2
name: HaskellR-examples
version: 0.1.0.0
license: AllRightsReserved
license: BSD-3-Clause
license-file: LICENSE
copyright: Copyright (c) 2013-2015 Amgen, Inc.
Copyright (c) 2015 Tweag I/O Limited.
build-type: Simple
Category: FFI
Synopsis: Examples bundled with the HaskellR project
description: This package is part of the HaskellR project.
cabal-version: >=1.10
extra-source-files:
nls/nls.H
nls2/nls2.H
Expand All @@ -17,47 +18,54 @@ source-repository head
location: git://github.com/tweag/HaskellR.git
subdir: examples

common common-config
default-language: Haskell2010
ghc-options: -Wall -threaded

common common-deps
build-depends:
inline-r,
base >= 4.6 && < 5,

executable fft
import:
common-config,
common-deps,
main-is: Main.hs
hs-source-dirs: fft
build-depends: inline-r
, base >= 4.6 && < 5
default-language: Haskell2010
ghc-options: -Wall -threaded

executable fib
import:
common-config,
common-deps,
main-is: Main.hs
hs-source-dirs: fib
other-modules: Fib
build-depends: inline-r
, base >= 4.6 && < 5
default-language: Haskell2010
ghc-options: -Wall -threaded

executable nls
import:
common-config,
common-deps,
main-is: Main.hs
hs-source-dirs: nls
build-depends: inline-r
, base >= 4.6 && < 5
, mwc-random >= 0.12 && <0.16
default-language: Haskell2010
ghc-options: -Wall -threaded
build-depends:
mwc-random >= 0.12 && <0.16,

executable nls2
import:
common-config,
common-deps,
main-is: Main.hs
hs-source-dirs: nls2
build-depends: inline-r
, base >= 4.6 && < 5
, mwc-random >= 0.12 && <0.16
default-language: Haskell2010
ghc-options: -Wall -threaded
build-depends:
mwc-random >= 0.12 && <0.16,

executable RelaxWithNM
import:
common-config,
common-deps,
main-is: RelaxWithNM.hs
build-depends: inline-r
, base >= 4.6 && < 5
, deepseq >=1.4.4.0 && <1.5
, integration >=0.2.1 && <0.3
, temporary >= 1.2.0.3 && <1.4
default-language: Haskell2010
ghc-options: -Wall -threaded
build-depends:
deepseq >=1.4.4.0 && <1.6,
integration >=0.2.1 && <0.3,
temporary >= 1.2.0.3 && <1.4,
28 changes: 28 additions & 0 deletions examples/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Copyright (c) 2013-2015 Amgen, Inc.
Copyright (c) 2015 Tweag I/O Limited.

All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
3. The names of the author may not be used to endorse or promote
products derived from this software without specific prior written
permission.

THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.

0 comments on commit e5d45ca

Please sign in to comment.