diff options
-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 |