Commit 4bebb85c by Zachary Snow

refactor interface conversion

parent aca24ebe
......@@ -52,8 +52,7 @@ convert =
lookupDir portName =
case lookup portName dirs of
Just dir -> dir
Nothing -> error $ "Could not find dir for port " ++
portName ++ " in module " ++ name
Nothing -> Inout
collectPortsM _ = return ()
collectDeclDirsM :: ModuleItem -> Writer [(Identifier, Direction)] ()
collectDeclDirsM (MIPackageItem (Decl (Variable dir t ident _ _))) =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment