From 4f0deb94f69974ab03e5a80d415c17398242a8ca Mon Sep 17 00:00:00 2001 From: Michael Xavier Date: Thu, 2 Mar 2017 15:29:49 -0800 Subject: [PATCH] Fix errors in sdist for example project --- .../LICENSE | 20 +++++++++++++++++++ .../Setup.lhs | 7 +++++++ ...rversession-example-yesod-persistent.cabal | 11 ++++++---- 3 files changed, 34 insertions(+), 4 deletions(-) create mode 100644 examples/serversession-example-yesod-persistent/LICENSE create mode 100755 examples/serversession-example-yesod-persistent/Setup.lhs diff --git a/examples/serversession-example-yesod-persistent/LICENSE b/examples/serversession-example-yesod-persistent/LICENSE new file mode 100644 index 0000000..cdf4661 --- /dev/null +++ b/examples/serversession-example-yesod-persistent/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2015 Felipe Lessa + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/examples/serversession-example-yesod-persistent/Setup.lhs b/examples/serversession-example-yesod-persistent/Setup.lhs new file mode 100755 index 0000000..06e2708 --- /dev/null +++ b/examples/serversession-example-yesod-persistent/Setup.lhs @@ -0,0 +1,7 @@ +#!/usr/bin/env runhaskell + +> module Main where +> import Distribution.Simple + +> main :: IO () +> main = defaultMain diff --git a/examples/serversession-example-yesod-persistent/serversession-example-yesod-persistent.cabal b/examples/serversession-example-yesod-persistent/serversession-example-yesod-persistent.cabal index d3fd967..73221bc 100644 --- a/examples/serversession-example-yesod-persistent/serversession-example-yesod-persistent.cabal +++ b/examples/serversession-example-yesod-persistent/serversession-example-yesod-persistent.cabal @@ -1,5 +1,8 @@ name: serversession-example-yesod-persistent version: 0.0.0 +license: MIT +license-file: LICENSE +description: Example yesod/persistent app using serversession cabal-version: >= 1.8 build-type: Simple @@ -25,9 +28,9 @@ library if flag(dev) || flag(library-only) cpp-options: -DDEVELOPMENT - ghc-options: -Wall -fwarn-tabs -O0 + ghc-options: -Wall -fwarn-tabs else - ghc-options: -Wall -fwarn-tabs -O + ghc-options: -Wall -fwarn-tabs extensions: TemplateHaskell QuasiQuotes @@ -46,7 +49,7 @@ library TupleSections RecordWildCards - build-depends: base >= 4 + build-depends: base >= 4 && < 5 , yesod >= 1.4.1 , yesod-core >= 1.4.6 , yesod-auth >= 1.4.0 @@ -95,7 +98,7 @@ executable serversession-example-yesod-persistent hs-source-dirs: app build-depends: base, serversession-example-yesod-persistent - ghc-options: -threaded -O -rtsopts -with-rtsopts=-N + ghc-options: -threaded -rtsopts -with-rtsopts=-N test-suite test type: exitcode-stdio-1.0