diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Hello.hs | 4 | ||||
-rw-r--r-- | examples/HelloEmbedded.hs | 4 | ||||
-rw-r--r-- | examples/LICENSE | 30 | ||||
-rw-r--r-- | examples/Setup.hs | 2 | ||||
-rw-r--r-- | examples/lambdacube-gl-examples.cabal | 43 |
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 | |||
11 | import Data.Aeson | 11 | import Data.Aeson |
12 | import qualified Data.ByteString as SB | 12 | import qualified Data.ByteString as SB |
13 | 13 | ||
14 | ---------------------------------------------------- | ||
15 | -- See: http://lambdacube3d.com/getting-started | ||
16 | ---------------------------------------------------- | ||
17 | |||
14 | main :: IO () | 18 | main :: IO () |
15 | main = do | 19 | main = 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 | ||
11 | import LambdaCube.Compiler as LambdaCube -- compiler | 11 | import LambdaCube.Compiler as LambdaCube -- compiler |
12 | 12 | ||
13 | ---------------------------------------------------- | ||
14 | -- See: http://lambdacube3d.com/getting-started | ||
15 | ---------------------------------------------------- | ||
16 | |||
13 | main :: IO () | 17 | main :: IO () |
14 | main = do | 18 | main = 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 @@ | |||
1 | Copyright (c) 2016, Csaba Hruska | ||
2 | |||
3 | All rights reserved. | ||
4 | |||
5 | Redistribution and use in source and binary forms, with or without | ||
6 | modification, 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 | |||
20 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
21 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
22 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
23 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
24 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
25 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
26 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
27 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
28 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
29 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
30 | OF 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 @@ | |||
1 | import Distribution.Simple | ||
2 | main = 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 @@ | |||
1 | name: lambdacube-gl-examples | ||
2 | version: 0.1.0.0 | ||
3 | synopsis: Basic example for LambdaCube 3D Haskell OpenGL backend | ||
4 | -- description: | ||
5 | homepage: http://lambdacube3d.com/getting-started | ||
6 | license: BSD3 | ||
7 | license-file: LICENSE | ||
8 | author: Csaba Hruska | ||
9 | maintainer: csaba.hruska@gmail.com | ||
10 | -- copyright: | ||
11 | category: Graphics | ||
12 | build-type: Simple | ||
13 | extra-source-files: hello.lc | ||
14 | hello.json | ||
15 | cabal-version: >=1.10 | ||
16 | |||
17 | executable 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 | |||
30 | executable 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 | |||