summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/Hello.hs4
-rw-r--r--examples/HelloEmbedded.hs4
-rw-r--r--examples/LICENSE30
-rw-r--r--examples/Setup.hs2
-rw-r--r--examples/lambdacube-gl-examples.cabal43
5 files changed, 8 insertions, 75 deletions
diff --git a/examples/Hello.hs b/examples/Hello.hs
index 081fd93..c93136b 100644
--- a/examples/Hello.hs
+++ b/examples/Hello.hs
@@ -11,6 +11,10 @@ import Codec.Picture as Juicy
11import Data.Aeson 11import Data.Aeson
12import qualified Data.ByteString as SB 12import qualified Data.ByteString as SB
13 13
14----------------------------------------------------
15-- See: http://lambdacube3d.com/getting-started
16----------------------------------------------------
17
14main :: IO () 18main :: IO ()
15main = do 19main = do
16 Just pipelineDesc <- decodeStrict <$> SB.readFile "hello.json" 20 Just pipelineDesc <- decodeStrict <$> SB.readFile "hello.json"
diff --git a/examples/HelloEmbedded.hs b/examples/HelloEmbedded.hs
index fbddb20..5c3b55d 100644
--- a/examples/HelloEmbedded.hs
+++ b/examples/HelloEmbedded.hs
@@ -10,6 +10,10 @@ import Codec.Picture as Juicy
10 10
11import LambdaCube.Compiler as LambdaCube -- compiler 11import LambdaCube.Compiler as LambdaCube -- compiler
12 12
13----------------------------------------------------
14-- See: http://lambdacube3d.com/getting-started
15----------------------------------------------------
16
13main :: IO () 17main :: IO ()
14main = do 18main = do
15 -- compile hello.lc to graphics pipeline description 19 -- compile hello.lc to graphics pipeline description
diff --git a/examples/LICENSE b/examples/LICENSE
deleted file mode 100644
index a4fcec0..0000000
--- a/examples/LICENSE
+++ /dev/null
@@ -1,30 +0,0 @@
1Copyright (c) 2016, Csaba Hruska
2
3All rights reserved.
4
5Redistribution and use in source and binary forms, with or without
6modification, are permitted provided that the following conditions are met:
7
8 * Redistributions of source code must retain the above copyright
9 notice, this list of conditions and the following disclaimer.
10
11 * Redistributions in binary form must reproduce the above
12 copyright notice, this list of conditions and the following
13 disclaimer in the documentation and/or other materials provided
14 with the distribution.
15
16 * Neither the name of Csaba Hruska nor the names of other
17 contributors may be used to endorse or promote products derived
18 from this software without specific prior written permission.
19
20THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/examples/Setup.hs b/examples/Setup.hs
deleted file mode 100644
index 9a994af..0000000
--- a/examples/Setup.hs
+++ /dev/null
@@ -1,2 +0,0 @@
1import Distribution.Simple
2main = defaultMain
diff --git a/examples/lambdacube-gl-examples.cabal b/examples/lambdacube-gl-examples.cabal
deleted file mode 100644
index dc5f998..0000000
--- a/examples/lambdacube-gl-examples.cabal
+++ /dev/null
@@ -1,43 +0,0 @@
1name: lambdacube-gl-examples
2version: 0.1.0.0
3synopsis: Basic example for LambdaCube 3D Haskell OpenGL backend
4-- description:
5homepage: http://lambdacube3d.com/getting-started
6license: BSD3
7license-file: LICENSE
8author: Csaba Hruska
9maintainer: csaba.hruska@gmail.com
10-- copyright:
11category: Graphics
12build-type: Simple
13extra-source-files: hello.lc
14 hello.json
15cabal-version: >=1.10
16
17executable hello-gl
18 main-is: Hello.hs
19 build-depends: base >=4.8 && <4.9,
20 containers >=0.5 && <0.6,
21 vector >=0.11 && <0.12,
22 JuicyPixels >=3.2 && <3.3,
23 aeson >=0.9 && <0.11,
24 bytestring >=0.10 && <0.11,
25 GLFW-b >=1.4 && <1.5,
26 lambdacube-gl >=0.4 && <0.5
27 -- hs-source-dirs:
28 default-language: Haskell2010
29
30executable hello-gl-embedded
31 main-is: HelloEmbedded.hs
32 build-depends: base >=4.8 && <4.9,
33 containers >=0.5 && <0.6,
34 vector >=0.11 && <0.12,
35 JuicyPixels >=3.2 && <3.3,
36 aeson >=0.9 && <0.11,
37 bytestring >=0.10 && <0.11,
38 GLFW-b >=1.4 && <1.5,
39 lambdacube-gl >=0.4 && <0.5,
40 lambdacube-compiler >=0.4 && <0.5
41 -- hs-source-dirs:
42 default-language: Haskell2010
43