@@ -69,7 +69,7 @@ import Text.Parsec (ParseError)
6969modulesDir :: FilePath
7070modulesDir = " .test_modules" </> " node_modules"
7171
72- makeActions :: M. Map P. ModuleName ( FilePath , P. ForeignJS ) -> P. MakeActions P. Make
72+ makeActions :: M. Map P. ModuleName FilePath -> P. MakeActions P. Make
7373makeActions foreigns = (P. buildMakeActions modulesDir (error " makeActions: input file map was read." ) foreigns False )
7474 { P. getInputTimestamp = getInputTimestamp
7575 , P. getOutputTimestamp = getOutputTimestamp
@@ -98,14 +98,14 @@ type TestM = WriterT [(FilePath, String)] IO
9898runTest :: P. Make a -> IO (Either P. MultipleErrors a )
9999runTest = fmap (fmap fst ) . P. runMake P. defaultOptions
100100
101- compile :: [FilePath ] -> M. Map P. ModuleName ( FilePath , P. ForeignJS ) -> IO (Either P. MultipleErrors P. Environment )
101+ compile :: [FilePath ] -> M. Map P. ModuleName FilePath -> IO (Either P. MultipleErrors P. Environment )
102102compile inputFiles foreigns = runTest $ do
103103 fs <- liftIO $ readInput inputFiles
104104 ms <- P. parseModulesFromFiles id fs
105105 P. make (makeActions foreigns) (map snd ms)
106106
107107assert :: [FilePath ] ->
108- M. Map P. ModuleName ( FilePath , P. ForeignJS ) ->
108+ M. Map P. ModuleName FilePath ->
109109 (Either P. MultipleErrors P. Environment -> IO (Maybe String )) ->
110110 TestM ()
111111assert inputFiles foreigns f = do
@@ -115,7 +115,7 @@ assert inputFiles foreigns f = do
115115 Just err -> tell [(last inputFiles, err)]
116116 Nothing -> return ()
117117
118- assertCompiles :: [FilePath ] -> M. Map P. ModuleName ( FilePath , P. ForeignJS ) -> TestM ()
118+ assertCompiles :: [FilePath ] -> M. Map P. ModuleName FilePath -> TestM ()
119119assertCompiles inputFiles foreigns = do
120120 liftIO . putStrLn $ " Assert " ++ last inputFiles ++ " compiles successfully"
121121 assert inputFiles foreigns $ \ e ->
@@ -131,7 +131,7 @@ assertCompiles inputFiles foreigns = do
131131 Just (ExitFailure _, _, err) -> return $ Just err
132132 Nothing -> return $ Just " Couldn't find node.js executable"
133133
134- assertDoesNotCompile :: [FilePath ] -> M. Map P. ModuleName ( FilePath , P. ForeignJS ) -> TestM ()
134+ assertDoesNotCompile :: [FilePath ] -> M. Map P. ModuleName FilePath -> TestM ()
135135assertDoesNotCompile inputFiles foreigns = do
136136 let testFile = last inputFiles
137137 liftIO . putStrLn $ " Assert " ++ testFile ++ " does not compile"
0 commit comments