diff --git a/examples/HaskellR-examples.cabal b/examples/HaskellR-examples.cabal index 61d1e515..a81ec3fd 100644 --- a/examples/HaskellR-examples.cabal +++ b/examples/HaskellR-examples.cabal @@ -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 @@ -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, diff --git a/examples/LICENSE b/examples/LICENSE new file mode 100644 index 00000000..96d78a31 --- /dev/null +++ b/examples/LICENSE @@ -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.