Permalink
Browse files

separate examples project to make cabal happier

  • Loading branch information...
1 parent ed237b4 commit dc6c14d5c1e4cfb3c10fc5669c7b2522e029044c @ekmett committed Aug 8, 2012
View
@@ -0,0 +1,30 @@
+Copyright 2012 Edward Kmett
+
+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. Neither the name of the author nor the names of his contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``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 AUTHORS 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.
View
12 examples/Pong.hs 100644 → 100755
@@ -1,4 +1,16 @@
{-# LANGUAGE TemplateHaskell, Rank2Types, NoMonomorphismRestriction #-}
+-----------------------------------------------------------------------------
+-- |
+-- Module : Main
+-- Copyright : (C) 2012 Edward Kmett, nand`
+-- License : BSD-style (see the file LICENSE)
+-- Maintainer : Edward Kmett <ekmett@gmail.com>
+-- Stability : provisional
+-- Portability : TH, Rank2, NoMonomorphismRestriction
+--
+-- A simple game of pong using gloss.
+-----------------------------------------------------------------------------
+module Main where
import Control.Applicative ((<$>), (<*>))
import Control.Lens
@@ -0,0 +1,31 @@
+name: lens-examples
+category: Data, Lenses
+version: 0.1
+license: BSD3
+cabal-version: >= 1.8
+license-file: LICENSE
+author: nand
+maintainer: Edward A. Kmett <ekmett@gmail.com>
+stability: provisional
+homepage: http://github.com/ekmett/lens/
+bug-reports: http://github.com/ekmett/lens/issues
+copyright: Copyright (C) 2012 Edward A. Kmett
+synopsis: Lenses, Folds and Traversals
+description: Pong Example
+
+build-type: Simple
+tested-with: GHC == 7.4.1
+
+source-repository head
+ type: git
+ location: git://github.com/ekmett/lens.git
+
+executable pong
+ build-depends:
+ base == 4.*,
+ containers >= 0.4.2 && < 0.6,
+ gloss == 1.7.*,
+ lens == 1.7.*,
+ mtl >= 2.0.1 && < 2.2,
+ random == 1.0.*
+ main-is: pong.hs
View
@@ -1,6 +1,6 @@
name: lens
category: Data, Lenses
-version: 1.7
+version: 1.7.1
license: BSD3
cabal-version: >= 1.8
license-file: LICENSE
@@ -46,16 +46,11 @@ build-type: Simple
tested-with: GHC == 7.4.1
extra-source-files:
.travis.yml
- examples/*.hs
- test/*.hs
+ examples/LICENSE
+ examples/lens-examples.cabal
+ examples/pong.hs
README.markdown
--- Build examples
-flag examples
- default: False
- manual: True
-
-
source-repository head
type: git
location: git://github.com/ekmett/lens.git
@@ -168,17 +163,3 @@ test-suite properties
transformers >= 0.3 && < 0.5
ghc-options: -w -threaded
hs-source-dirs: test
-
-executable pong
- if !flag(examples)
- buildable: False
-
- build-depends:
- base == 4.*,
- containers >= 0.4.2 && < 0.6,
- gloss == 1.7.*,
- lens == 1.7,
- mtl >= 2.0.1 && < 2.2,
- random == 1.0.*
- main-is: Pong.hs
- hs-source-dirs: examples
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit dc6c14d

Please sign in to comment.