@@ -58,16 +58,11 @@ metadataModule ifaces modul =
5858 program' <- rename initialEnv (program modul)
5959 aliases' <- mapM (three4 renameType') (aliases modul)
6060 datatypes' <- mapM (three4 (mapM (two2 (mapM renameType')))) (datatypes modul)
61− sendPorts' <- mapM renamePort (sendPorts modul)
62− recvPorts' <- mapM renamePort (recvPorts modul)
6361 return $ modul { program = program'
6462 , aliases = aliases'
65− , datatypes = datatypes'
66− , sendPorts = sendPorts'
67− , recvPorts = recvPorts' }
63+ , datatypes = datatypes' }
6864 where
6965 two2 f (a,b) = (,) a <$> f b
70− renamePort (name,expr,tipe) = (,,) name <$> rename initialEnv expr <*> renameType' tipe
7166 three4 f (a,b,c,d) = (,,,) a b <$> f c <*> return d
7267 renameType' =
7368 Either.either (\err -> Left [P.text err]) return . renameType (replace "type" initialEnv)