Commit 4bebb85c by Zachary Snow

refactor interface conversion

parent aca24ebe
...@@ -52,8 +52,7 @@ convert = ...@@ -52,8 +52,7 @@ convert =
lookupDir portName = lookupDir portName =
case lookup portName dirs of case lookup portName dirs of
Just dir -> dir Just dir -> dir
Nothing -> error $ "Could not find dir for port " ++ Nothing -> Inout
portName ++ " in module " ++ name
collectPortsM _ = return () collectPortsM _ = return ()
collectDeclDirsM :: ModuleItem -> Writer [(Identifier, Direction)] () collectDeclDirsM :: ModuleItem -> Writer [(Identifier, Direction)] ()
collectDeclDirsM (MIPackageItem (Decl (Variable dir t ident _ _))) = 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