Commit de27065d by Zachary Snow

use runIdentity for traverseFiles

parent 87ea9de8
...@@ -101,7 +101,6 @@ module Convert.Traverse ...@@ -101,7 +101,6 @@ module Convert.Traverse
) where ) where
import Data.Functor.Identity (Identity, runIdentity) import Data.Functor.Identity (Identity, runIdentity)
import Control.Monad.State.Strict
import Control.Monad.Writer.Strict import Control.Monad.Writer.Strict
import Language.SystemVerilog.AST import Language.SystemVerilog.AST
...@@ -1120,5 +1119,5 @@ traverseFiles ...@@ -1120,5 +1119,5 @@ traverseFiles
-> (w -> Mapper AST) -> (w -> Mapper AST)
-> Mapper [AST] -> Mapper [AST]
traverseFiles fileCollectorM fileMapper files = traverseFiles fileCollectorM fileMapper files =
evalState (traverseFilesM fileCollectorM fileMapperM files) () runIdentity (traverseFilesM fileCollectorM fileMapperM files)
where fileMapperM = (\w -> return . fileMapper w) where fileMapperM = (\w -> return . fileMapper w)
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