Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv2v
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
sv2v
Commits
e4135bb8
Commit
e4135bb8
authored
Aug 11, 2020
by
Zachary Snow
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use strict State and Writer monads
parent
13b62fd8
Show whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
25 additions
and
25 deletions
+25
-25
src/Convert/DuplicateGenvar.hs
+1
-1
src/Convert/EmptyArgs.hs
+1
-1
src/Convert/Enum.hs
+1
-1
src/Convert/FuncRoutine.hs
+1
-1
src/Convert/Interface.hs
+1
-1
src/Convert/Jump.hs
+2
-2
src/Convert/KWArgs.hs
+1
-1
src/Convert/Logic.hs
+2
-2
src/Convert/NamedBlock.hs
+1
-1
src/Convert/NestPI.hs
+1
-1
src/Convert/Package.hs
+2
-2
src/Convert/ParamType.hs
+1
-1
src/Convert/Scoper.hs
+1
-1
src/Convert/SizeCast.hs
+1
-1
src/Convert/StarPort.hs
+1
-1
src/Convert/Traverse.hs
+2
-2
src/Convert/UnbasedUnsized.hs
+1
-1
src/Convert/UnpackedArray.hs
+1
-1
src/Language/SystemVerilog/Parser.hs
+1
-1
src/Language/SystemVerilog/Parser/Parse.y
+1
-1
src/Language/SystemVerilog/Parser/Preprocess.hs
+1
-1
No files found.
src/Convert/DuplicateGenvar.hs
View file @
e4135bb8
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
module
Convert.DuplicateGenvar
(
convert
)
where
module
Convert.DuplicateGenvar
(
convert
)
where
import
Control.Monad.State
import
Control.Monad.State
.Strict
import
qualified
Data.Set
as
Set
import
qualified
Data.Set
as
Set
import
Convert.Traverse
import
Convert.Traverse
...
...
src/Convert/EmptyArgs.hs
View file @
e4135bb8
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
module
Convert.EmptyArgs
(
convert
)
where
module
Convert.EmptyArgs
(
convert
)
where
import
Control.Monad.Writer
import
Control.Monad.Writer
.Strict
import
qualified
Data.Set
as
Set
import
qualified
Data.Set
as
Set
import
Convert.Traverse
import
Convert.Traverse
...
...
src/Convert/Enum.hs
View file @
e4135bb8
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
module
Convert.Enum
(
convert
)
where
module
Convert.Enum
(
convert
)
where
import
Control.Monad.Writer
import
Control.Monad.Writer
.Strict
import
Data.List
(
elemIndices
)
import
Data.List
(
elemIndices
)
import
qualified
Data.Set
as
Set
import
qualified
Data.Set
as
Set
...
...
src/Convert/FuncRoutine.hs
View file @
e4135bb8
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
module
Convert.FuncRoutine
(
convert
)
where
module
Convert.FuncRoutine
(
convert
)
where
import
Control.Monad.Writer
import
Control.Monad.Writer
.Strict
import
qualified
Data.Set
as
Set
import
qualified
Data.Set
as
Set
import
Convert.Traverse
import
Convert.Traverse
...
...
src/Convert/Interface.hs
View file @
e4135bb8
...
@@ -8,7 +8,7 @@ module Convert.Interface (convert) where
...
@@ -8,7 +8,7 @@ module Convert.Interface (convert) where
import
Data.List
(
isPrefixOf
)
import
Data.List
(
isPrefixOf
)
import
Data.Maybe
(
mapMaybe
)
import
Data.Maybe
(
mapMaybe
)
import
Control.Monad.Writer
import
Control.Monad.Writer
.Strict
import
qualified
Data.Map.Strict
as
Map
import
qualified
Data.Map.Strict
as
Map
import
Convert.Scoper
import
Convert.Scoper
...
...
src/Convert/Jump.hs
View file @
e4135bb8
...
@@ -10,8 +10,8 @@
...
@@ -10,8 +10,8 @@
module
Convert.Jump
(
convert
)
where
module
Convert.Jump
(
convert
)
where
import
Control.Monad.State
import
Control.Monad.State
.Strict
import
Control.Monad.Writer
import
Control.Monad.Writer
.Strict
import
Convert.Traverse
import
Convert.Traverse
import
Language.SystemVerilog.AST
import
Language.SystemVerilog.AST
...
...
src/Convert/KWArgs.hs
View file @
e4135bb8
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
module
Convert.KWArgs
(
convert
)
where
module
Convert.KWArgs
(
convert
)
where
import
Data.List
(
elemIndex
,
sortOn
)
import
Data.List
(
elemIndex
,
sortOn
)
import
Control.Monad.Writer
import
Control.Monad.Writer
.Strict
import
qualified
Data.Map.Strict
as
Map
import
qualified
Data.Map.Strict
as
Map
import
Convert.Traverse
import
Convert.Traverse
...
...
src/Convert/Logic.hs
View file @
e4135bb8
...
@@ -25,8 +25,8 @@
...
@@ -25,8 +25,8 @@
module
Convert.Logic
(
convert
)
where
module
Convert.Logic
(
convert
)
where
import
Control.Monad.State
import
Control.Monad.State
.Strict
import
Control.Monad.Writer
import
Control.Monad.Writer
.Strict
import
qualified
Data.Map.Strict
as
Map
import
qualified
Data.Map.Strict
as
Map
import
qualified
Data.Set
as
Set
import
qualified
Data.Set
as
Set
...
...
src/Convert/NamedBlock.hs
View file @
e4135bb8
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
module
Convert.NamedBlock
(
convert
)
where
module
Convert.NamedBlock
(
convert
)
where
import
Control.Monad.State
import
Control.Monad.State
.Strict
import
qualified
Data.Set
as
Set
import
qualified
Data.Set
as
Set
import
Convert.Traverse
import
Convert.Traverse
...
...
src/Convert/NestPI.hs
View file @
e4135bb8
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
module
Convert.NestPI
(
convert
,
reorder
)
where
module
Convert.NestPI
(
convert
,
reorder
)
where
import
Control.Monad.Writer
import
Control.Monad.Writer
.Strict
import
Data.Maybe
(
mapMaybe
)
import
Data.Maybe
(
mapMaybe
)
import
qualified
Data.Map.Strict
as
Map
import
qualified
Data.Map.Strict
as
Map
import
qualified
Data.Set
as
Set
import
qualified
Data.Set
as
Set
...
...
src/Convert/Package.hs
View file @
e4135bb8
...
@@ -25,8 +25,8 @@
...
@@ -25,8 +25,8 @@
module
Convert.Package
(
convert
)
where
module
Convert.Package
(
convert
)
where
import
Control.Monad.State
import
Control.Monad.State
.Strict
import
Control.Monad.Writer
import
Control.Monad.Writer
.Strict
import
qualified
Data.Map.Strict
as
Map
import
qualified
Data.Map.Strict
as
Map
import
qualified
Data.Set
as
Set
import
qualified
Data.Set
as
Set
...
...
src/Convert/ParamType.hs
View file @
e4135bb8
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
module
Convert.ParamType
(
convert
)
where
module
Convert.ParamType
(
convert
)
where
import
Control.Monad.Writer
import
Control.Monad.Writer
.Strict
import
Data.Either
(
isLeft
)
import
Data.Either
(
isLeft
)
import
Data.Maybe
(
isJust
,
isNothing
,
fromJust
)
import
Data.Maybe
(
isJust
,
isNothing
,
fromJust
)
import
qualified
Data.Map.Strict
as
Map
import
qualified
Data.Map.Strict
as
Map
...
...
src/Convert/Scoper.hs
View file @
e4135bb8
...
@@ -42,7 +42,7 @@ module Convert.Scoper
...
@@ -42,7 +42,7 @@ module Convert.Scoper
,
scopeModuleItemT
,
scopeModuleItemT
)
where
)
where
import
Control.Monad.State
import
Control.Monad.State
.Strict
import
Data.Functor.Identity
(
runIdentity
)
import
Data.Functor.Identity
(
runIdentity
)
import
Data.Maybe
(
isNothing
)
import
Data.Maybe
(
isNothing
)
import
qualified
Data.Map.Strict
as
Map
import
qualified
Data.Map.Strict
as
Map
...
...
src/Convert/SizeCast.hs
View file @
e4135bb8
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
module
Convert.SizeCast
(
convert
)
where
module
Convert.SizeCast
(
convert
)
where
import
Control.Monad.Writer
import
Control.Monad.Writer
.Strict
import
Data.List
(
isPrefixOf
)
import
Data.List
(
isPrefixOf
)
import
Convert.ExprUtils
import
Convert.ExprUtils
...
...
src/Convert/StarPort.hs
View file @
e4135bb8
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
module
Convert.StarPort
(
convert
)
where
module
Convert.StarPort
(
convert
)
where
import
Control.Monad.Writer
import
Control.Monad.Writer
.Strict
import
qualified
Data.Map.Strict
as
Map
import
qualified
Data.Map.Strict
as
Map
import
Convert.Traverse
import
Convert.Traverse
...
...
src/Convert/Traverse.hs
View file @
e4135bb8
...
@@ -98,8 +98,8 @@ module Convert.Traverse
...
@@ -98,8 +98,8 @@ module Convert.Traverse
)
where
)
where
import
Data.Functor.Identity
(
Identity
,
runIdentity
)
import
Data.Functor.Identity
(
Identity
,
runIdentity
)
import
Control.Monad.State
import
Control.Monad.State
.Strict
import
Control.Monad.Writer
import
Control.Monad.Writer
.Strict
import
Language.SystemVerilog.AST
import
Language.SystemVerilog.AST
type
MapperM
m
t
=
t
->
m
t
type
MapperM
m
t
=
t
->
m
t
...
...
src/Convert/UnbasedUnsized.hs
View file @
e4135bb8
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
module
Convert.UnbasedUnsized
(
convert
)
where
module
Convert.UnbasedUnsized
(
convert
)
where
import
Control.Monad.Writer
import
Control.Monad.Writer
.Strict
import
Data.Maybe
(
catMaybes
)
import
Data.Maybe
(
catMaybes
)
import
qualified
Data.Map.Strict
as
Map
import
qualified
Data.Map.Strict
as
Map
...
...
src/Convert/UnpackedArray.hs
View file @
e4135bb8
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
module
Convert.UnpackedArray
(
convert
)
where
module
Convert.UnpackedArray
(
convert
)
where
import
Control.Monad.State
import
Control.Monad.State
.Strict
import
qualified
Data.Set
as
Set
import
qualified
Data.Set
as
Set
import
Convert.Scoper
import
Convert.Scoper
...
...
src/Language/SystemVerilog/Parser.hs
View file @
e4135bb8
...
@@ -6,7 +6,7 @@ module Language.SystemVerilog.Parser
...
@@ -6,7 +6,7 @@ module Language.SystemVerilog.Parser
)
where
)
where
import
Control.Monad.Except
import
Control.Monad.Except
import
Control.Monad.State
import
Control.Monad.State
.Strict
import
qualified
Data.Map.Strict
as
Map
import
qualified
Data.Map.Strict
as
Map
import
Language.SystemVerilog.AST
(
AST
)
import
Language.SystemVerilog.AST
(
AST
)
import
Language.SystemVerilog.Parser.Lex
(
lexStr
)
import
Language.SystemVerilog.Parser.Lex
(
lexStr
)
...
...
src/Language/SystemVerilog/Parser/Parse.y
View file @
e4135bb8
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
module
Language.SystemVerilog.Parser.Parse
(
parse
)
where
module
Language.SystemVerilog.Parser.Parse
(
parse
)
where
import
Control.Monad.Except
import
Control.Monad.Except
import
Control.Monad.State
import
Control.Monad.State
.Strict
import
Data.Maybe
(
fromMaybe
)
import
Data.Maybe
(
fromMaybe
)
import
Language.SystemVerilog.AST
import
Language.SystemVerilog.AST
import
Language.SystemVerilog.Parser.ParseDecl
import
Language.SystemVerilog.Parser.ParseDecl
...
...
src/Language/SystemVerilog/Parser/Preprocess.hs
View file @
e4135bb8
...
@@ -14,7 +14,7 @@ module Language.SystemVerilog.Parser.Preprocess
...
@@ -14,7 +14,7 @@ module Language.SystemVerilog.Parser.Preprocess
)
where
)
where
import
Control.Monad.Except
import
Control.Monad.Except
import
Control.Monad.State
import
Control.Monad.State
.Strict
import
Data.Char
(
ord
)
import
Data.Char
(
ord
)
import
Data.List
(
dropWhileEnd
,
tails
,
isPrefixOf
,
findIndex
)
import
Data.List
(
dropWhileEnd
,
tails
,
isPrefixOf
,
findIndex
)
import
Data.Maybe
(
isJust
,
fromJust
)
import
Data.Maybe
(
isJust
,
fromJust
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment