Commit e4135bb8 by Zachary Snow

use strict State and Writer monads

parent 13b62fd8
......@@ -6,7 +6,7 @@
module Convert.DuplicateGenvar (convert) where
import Control.Monad.State
import Control.Monad.State.Strict
import qualified Data.Set as Set
import Convert.Traverse
......
......@@ -8,7 +8,7 @@
module Convert.EmptyArgs (convert) where
import Control.Monad.Writer
import Control.Monad.Writer.Strict
import qualified Data.Set as Set
import Convert.Traverse
......
......@@ -19,7 +19,7 @@
module Convert.Enum (convert) where
import Control.Monad.Writer
import Control.Monad.Writer.Strict
import Data.List (elemIndices)
import qualified Data.Set as Set
......
......@@ -10,7 +10,7 @@
module Convert.FuncRoutine (convert) where
import Control.Monad.Writer
import Control.Monad.Writer.Strict
import qualified Data.Set as Set
import Convert.Traverse
......
......@@ -8,7 +8,7 @@ module Convert.Interface (convert) where
import Data.List (isPrefixOf)
import Data.Maybe (mapMaybe)
import Control.Monad.Writer
import Control.Monad.Writer.Strict
import qualified Data.Map.Strict as Map
import Convert.Scoper
......
......@@ -10,8 +10,8 @@
module Convert.Jump (convert) where
import Control.Monad.State
import Control.Monad.Writer
import Control.Monad.State.Strict
import Control.Monad.Writer.Strict
import Convert.Traverse
import Language.SystemVerilog.AST
......
......@@ -10,7 +10,7 @@
module Convert.KWArgs (convert) where
import Data.List (elemIndex, sortOn)
import Control.Monad.Writer
import Control.Monad.Writer.Strict
import qualified Data.Map.Strict as Map
import Convert.Traverse
......
......@@ -25,8 +25,8 @@
module Convert.Logic (convert) where
import Control.Monad.State
import Control.Monad.Writer
import Control.Monad.State.Strict
import Control.Monad.Writer.Strict
import qualified Data.Map.Strict as Map
import qualified Data.Set as Set
......
......@@ -10,7 +10,7 @@
module Convert.NamedBlock (convert) where
import Control.Monad.State
import Control.Monad.State.Strict
import qualified Data.Set as Set
import Convert.Traverse
......
......@@ -6,7 +6,7 @@
module Convert.NestPI (convert, reorder) where
import Control.Monad.Writer
import Control.Monad.Writer.Strict
import Data.Maybe (mapMaybe)
import qualified Data.Map.Strict as Map
import qualified Data.Set as Set
......
......@@ -25,8 +25,8 @@
module Convert.Package (convert) where
import Control.Monad.State
import Control.Monad.Writer
import Control.Monad.State.Strict
import Control.Monad.Writer.Strict
import qualified Data.Map.Strict as Map
import qualified Data.Set as Set
......
......@@ -7,7 +7,7 @@
module Convert.ParamType (convert) where
import Control.Monad.Writer
import Control.Monad.Writer.Strict
import Data.Either (isLeft)
import Data.Maybe (isJust, isNothing, fromJust)
import qualified Data.Map.Strict as Map
......
......@@ -42,7 +42,7 @@ module Convert.Scoper
, scopeModuleItemT
) where
import Control.Monad.State
import Control.Monad.State.Strict
import Data.Functor.Identity (runIdentity)
import Data.Maybe (isNothing)
import qualified Data.Map.Strict as Map
......
......@@ -7,7 +7,7 @@
module Convert.SizeCast (convert) where
import Control.Monad.Writer
import Control.Monad.Writer.Strict
import Data.List (isPrefixOf)
import Convert.ExprUtils
......
......@@ -6,7 +6,7 @@
module Convert.StarPort (convert) where
import Control.Monad.Writer
import Control.Monad.Writer.Strict
import qualified Data.Map.Strict as Map
import Convert.Traverse
......
......@@ -98,8 +98,8 @@ module Convert.Traverse
) where
import Data.Functor.Identity (Identity, runIdentity)
import Control.Monad.State
import Control.Monad.Writer
import Control.Monad.State.Strict
import Control.Monad.Writer.Strict
import Language.SystemVerilog.AST
type MapperM m t = t -> m t
......
......@@ -17,7 +17,7 @@
module Convert.UnbasedUnsized (convert) where
import Control.Monad.Writer
import Control.Monad.Writer.Strict
import Data.Maybe (catMaybes)
import qualified Data.Map.Strict as Map
......
......@@ -14,7 +14,7 @@
module Convert.UnpackedArray (convert) where
import Control.Monad.State
import Control.Monad.State.Strict
import qualified Data.Set as Set
import Convert.Scoper
......
......@@ -6,7 +6,7 @@ module Language.SystemVerilog.Parser
) where
import Control.Monad.Except
import Control.Monad.State
import Control.Monad.State.Strict
import qualified Data.Map.Strict as Map
import Language.SystemVerilog.AST (AST)
import Language.SystemVerilog.Parser.Lex (lexStr)
......
......@@ -16,7 +16,7 @@
module Language.SystemVerilog.Parser.Parse (parse) where
import Control.Monad.Except
import Control.Monad.State
import Control.Monad.State.Strict
import Data.Maybe (fromMaybe)
import Language.SystemVerilog.AST
import Language.SystemVerilog.Parser.ParseDecl
......
......@@ -14,7 +14,7 @@ module Language.SystemVerilog.Parser.Preprocess
) where
import Control.Monad.Except
import Control.Monad.State
import Control.Monad.State.Strict
import Data.Char (ord)
import Data.List (dropWhileEnd, tails, isPrefixOf, findIndex)
import Data.Maybe (isJust, fromJust)
......
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