diff options
author | Péter Diviánszky <divipp@gmail.com> | 2016-01-26 16:31:57 +0100 |
---|---|---|
committer | Péter Diviánszky <divipp@gmail.com> | 2016-01-26 16:32:12 +0100 |
commit | 6f7e07679a196232d21547f4df78b583a576cbff (patch) | |
tree | 2ec0d0fb7b65f736251c958d3314178a9d5558b5 /test/runTests.hs | |
parent | a59a087dbf176d1c96e65cb1609f06a512803a9d (diff) |
reorder definitions in Infer.hs
Diffstat (limited to 'test/runTests.hs')
-rw-r--r-- | test/runTests.hs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/runTests.hs b/test/runTests.hs index d23113fc..8358ae92 100644 --- a/test/runTests.hs +++ b/test/runTests.hs | |||
@@ -23,7 +23,6 @@ import Options.Applicative | |||
23 | import qualified Data.Text as T | 23 | import qualified Data.Text as T |
24 | import qualified Data.Text.IO as TIO | 24 | import qualified Data.Text.IO as TIO |
25 | import Text.Printf | 25 | import Text.Printf |
26 | import Text.Parsec.Pos | ||
27 | 26 | ||
28 | import LambdaCube.Compiler.Pretty (ppShow) | 27 | import LambdaCube.Compiler.Pretty (ppShow) |
29 | import LambdaCube.Compiler.CoreToIR (compilePipeline) | 28 | import LambdaCube.Compiler.CoreToIR (compilePipeline) |
@@ -168,8 +167,8 @@ doTest Config{..} (i, fn) = do | |||
168 | Left e -> Left (tab "!Failed" e, Failed) | 167 | Left e -> Left (tab "!Failed" e, Failed) |
169 | Right (fname, Left e, i) | 168 | Right (fname, Left e, i) |
170 | -> Right ("typechecked module" | 169 | -> Right ("typechecked module" |
171 | , unlines $ e: "tooltips:": [ showRange (b, e) ++ " " ++ intercalate " | " m | 170 | , unlines $ e: "tooltips:": [ ppShow r ++ " " ++ intercalate " | " m |
172 | | (b, e, m) <- listInfos i, sourceName b == fname]) | 171 | | (r, m) <- listInfos i]) |
173 | Right (fname, Right e, i) | 172 | Right (fname, Right e, i) |
174 | | True <- i `deepseq` False -> error "impossible" | 173 | | True <- i `deepseq` False -> error "impossible" |
175 | | tyOf e == outputType -> Right ("compiled pipeline", show . compilePipeline OpenGL33 $ e) | 174 | | tyOf e == outputType -> Right ("compiled pipeline", show . compilePipeline OpenGL33 $ e) |