Commit ec760964 by Zachary Snow

remove empty initial blocks (resolves #89)

parent 478f0d19
...@@ -1052,6 +1052,7 @@ traverseNestedModuleItemsM mapper = fullMapper ...@@ -1052,6 +1052,7 @@ traverseNestedModuleItemsM mapper = fullMapper
mapM fullGenItemMapper genItems' >>= mapper . Generate mapM fullGenItemMapper genItems' >>= mapper . Generate
fullMapper (MIAttr attr mi) = fullMapper (MIAttr attr mi) =
fullMapper mi >>= mapper . MIAttr attr fullMapper mi >>= mapper . MIAttr attr
fullMapper (Initial Null) = return $ Generate []
fullMapper other = mapper other fullMapper other = mapper other
fullGenItemMapper = traverseNestedGenItemsM genItemMapper fullGenItemMapper = traverseNestedGenItemsM genItemMapper
genItemMapper (GenModuleItem moduleItem) = do genItemMapper (GenModuleItem moduleItem) = do
......
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