summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--SampleIR.hs5
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
14import Backend.GL as GL 14import Backend.GL as GL
15import Backend.GL.Mesh 15import Backend.GL.Mesh
16import IR as IR 16import IR as IR
17import Type
18 17
19import System.Environment 18import System.Environment
20 19
21import Driver (compileMain) 20import 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