X-Git-Url: http://git.lukelau.me/?a=blobdiff_plain;f=example%2FRecorded.hs;h=ce61cb1acfad9afd9a1ea8b65e3d00c1c946062e;hb=2560f39d64911bc247fa479868052545dca4f827;hp=dc4aa69fd32f739a82be4e599b72423e657be397;hpb=9db776483f617de170b6798d5ea8a9f997c0d098;p=opengl.git diff --git a/example/Recorded.hs b/example/Recorded.hs index dc4aa69..ce61cb1 100644 --- a/example/Recorded.hs +++ b/example/Recorded.hs @@ -3,5 +3,6 @@ import System.Directory import System.Environment main = do - file <- (head <$> getArgs) >>= canonicalizePath - replay file + [session, dir] <- (take 2 <$> getArgs) >>= mapM canonicalizePath + passed <- replay session dir + putStrLn $ if passed then "Passed" else "Failed"