diff options
author | Csaba Hruska <csaba.hruska@gmail.com> | 2015-05-12 21:16:58 +0100 |
---|---|---|
committer | Csaba Hruska <csaba.hruska@gmail.com> | 2015-05-18 14:50:52 +0200 |
commit | 2dec8f975909bf687d1f6776eb7661ca1a5e8508 (patch) | |
tree | eaca2a2d48d6e00b6a9d682c8882bbf884d8f20b | |
parent | 5c7a87f318b67092783aa3e59bc125d262d00362 (diff) |
cleanup
-rw-r--r-- | SampleIR.hs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/SampleIR.hs b/SampleIR.hs index c890266..58a5035 100644 --- a/SampleIR.hs +++ b/SampleIR.hs | |||
@@ -14,11 +14,10 @@ import Text.Show.Pretty | |||
14 | import Backend.GL as GL | 14 | import Backend.GL as GL |
15 | import Backend.GL.Mesh | 15 | import Backend.GL.Mesh |
16 | import IR as IR | 16 | import IR as IR |
17 | import Type | ||
18 | 17 | ||
19 | import System.Environment | 18 | import System.Environment |
20 | 19 | ||
21 | import Driver (compileMain) | 20 | import Driver |
22 | 21 | ||
23 | -- Our vertices. Tree consecutive floats give a 3D vertex; Three consecutive vertices give a triangle. | 22 | -- Our vertices. Tree consecutive floats give a 3D vertex; Three consecutive vertices give a triangle. |
24 | -- A cube has 6 faces with 2 triangles each, so this makes 6*2=12 triangles, and 12*3 vertices | 23 | -- A cube has 6 faces with 2 triangles each, so this makes 6*2=12 triangles, and 12*3 vertices |
@@ -137,7 +136,7 @@ main = do | |||
137 | addMesh pplInput "stream" gpuMonkey [] | 136 | addMesh pplInput "stream" gpuMonkey [] |
138 | 137 | ||
139 | let setup = do | 138 | let setup = do |
140 | let sn = N ExpNS [] srcName (NameInfo Nothing mempty) | 139 | let sn = ExpN srcName |
141 | pplRes <- compileMain "../lambdacube-dsl/tests/accept" sn | 140 | pplRes <- compileMain "../lambdacube-dsl/tests/accept" sn |
142 | case pplRes of | 141 | case pplRes of |
143 | Left err -> putStrLn ("error: " ++ err) >> return Nothing | 142 | Left err -> putStrLn ("error: " ++ err) >> return Nothing |