Skip to content

Commit

Permalink
Upgrade to GHC 9.6.4
Browse files Browse the repository at this point in the history
  • Loading branch information
zachjs committed May 1, 2024
1 parent 261beff commit 3dac47d
Show file tree
Hide file tree
Showing 22 changed files with 29 additions and 5 deletions.
2 changes: 2 additions & 0 deletions src/Convert/AlwaysKW.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@

module Convert.AlwaysKW (convert) where

import Control.Monad (when, zipWithM, (>=>))
import Control.Monad.State.Strict
import Control.Monad.Writer.Strict
import Data.Maybe (fromMaybe, mapMaybe)
import Data.Monoid (Any(Any), getAny)

import Convert.Scoper
import Convert.Traverse
Expand Down
2 changes: 2 additions & 0 deletions src/Convert/Cast.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@

module Convert.Cast (convert) where

import Control.Monad (when)
import Control.Monad.Writer.Strict
import Data.List (isPrefixOf)
import Data.Maybe (isJust)
import Data.Monoid (Any(Any), getAny)

import Convert.ExprUtils
import Convert.Scoper
Expand Down
1 change: 1 addition & 0 deletions src/Convert/GenvarName.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

module Convert.GenvarName (convert) where

import Control.Monad (when)
import Control.Monad.State.Strict
import Control.Monad.Writer.Strict
import Data.Functor ((<&>))
Expand Down
1 change: 1 addition & 0 deletions src/Convert/Inside.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import Language.SystemVerilog.AST

import Control.Monad.Writer
import Data.Maybe (fromMaybe)
import Data.Monoid (Any(Any), getAny)

convert :: [AST] -> [AST]
convert = map $ traverseDescriptions $ traverseModuleItems convertModuleItem
Expand Down
2 changes: 2 additions & 0 deletions src/Convert/Interface.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ module Convert.Interface (convert, disambiguate) where

import Data.List (intercalate, (\\))
import Data.Maybe (isJust, isNothing, mapMaybe)
import Data.Monoid (Any(Any), getAny)
import Control.Monad (when, (>=>))
import Control.Monad.Writer.Strict
import Text.Read (readMaybe)
import qualified Data.Map.Strict as Map
Expand Down
1 change: 1 addition & 0 deletions src/Convert/Jump.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module Convert.Jump (convert) where

import Control.Monad.State.Strict
import Control.Monad.Writer.Strict
import Data.Monoid (Any(Any), getAny)

import Convert.Traverse
import Language.SystemVerilog.AST
Expand Down
1 change: 1 addition & 0 deletions src/Convert/Logic.hs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

module Convert.Logic (convert) where

import Control.Monad (when)
import Control.Monad.Writer.Strict
import qualified Data.Map.Strict as Map
import qualified Data.Set as Set
Expand Down
1 change: 1 addition & 0 deletions src/Convert/Package.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ module Convert.Package
, prefixItems
) where

import Control.Monad (when, (>=>))
import Control.Monad.State.Strict
import Control.Monad.Writer.Strict
import Data.Functor ((<&>))
Expand Down
1 change: 1 addition & 0 deletions src/Convert/ParamNoDefault.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

module Convert.ParamNoDefault (convert) where

import Control.Monad (when)
import Control.Monad.Writer.Strict
import Data.List (intercalate)
import qualified Data.Map.Strict as Map
Expand Down
1 change: 1 addition & 0 deletions src/Convert/ParamType.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Control.Monad.Writer.Strict
import Data.Either (isRight, lefts)
import qualified Data.Map.Strict as Map
import qualified Data.Set as Set
import Data.Monoid (Any(Any), getAny)

import Convert.Traverse
import Language.SystemVerilog.AST
Expand Down
1 change: 1 addition & 0 deletions src/Convert/Scoper.hs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ module Convert.Scoper
, LookupResult
) where

import Control.Monad (join, when)
import Control.Monad.State.Strict
import Data.List (findIndices, intercalate, isPrefixOf, partition)
import Data.Maybe (isNothing)
Expand Down
1 change: 1 addition & 0 deletions src/Convert/StringParam.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

module Convert.StringParam (convert) where

import Control.Monad (when)
import Control.Monad.Writer.Strict
import Data.Maybe (mapMaybe)
import qualified Data.Set as Set
Expand Down
1 change: 1 addition & 0 deletions src/Convert/StructConst.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

module Convert.StructConst (convert) where

import Control.Monad (join, mplus, when)
import Control.Monad.State.Strict
import Data.Maybe (fromMaybe)
import Data.Tuple (swap)
Expand Down
1 change: 1 addition & 0 deletions src/Convert/Traverse.hs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ module Convert.Traverse

import Data.Bitraversable (bimapM)
import Data.Functor.Identity (Identity, runIdentity)
import Control.Monad ((>=>))
import Control.Monad.Writer.Strict
import Language.SystemVerilog.AST

Expand Down
1 change: 1 addition & 0 deletions src/Convert/UnbasedUnsized.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import Control.Monad.Writer.Strict
import Data.Either (isLeft)
import Data.Maybe (isNothing, mapMaybe)
import qualified Data.Map.Strict as Map
import Data.Monoid (Any(Any), getAny)

import Convert.Package (inject, prefixItems)
import Convert.Traverse
Expand Down
1 change: 1 addition & 0 deletions src/Convert/UnnamedGenBlock.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

module Convert.UnnamedGenBlock (convert) where

import Control.Monad (when)
import Control.Monad.State.Strict
import Data.List (isPrefixOf)

Expand Down
1 change: 1 addition & 0 deletions src/Convert/UnpackedArray.hs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

module Convert.UnpackedArray (convert) where

import Control.Monad (when, (>=>))
import Control.Monad.State.Strict
import qualified Data.Map.Strict as Map

Expand Down
2 changes: 2 additions & 0 deletions src/Language/SystemVerilog/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ module Language.SystemVerilog.Parser
, Config(..)
) where

import Control.Monad (when)
import Control.Monad.IO.Class (liftIO)
import Control.Monad.Except
import Data.List (elemIndex)
import Data.Maybe (catMaybes)
Expand Down
1 change: 1 addition & 0 deletions src/Language/SystemVerilog/Parser/Parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
{-# LANGUAGE BlockArguments #-}
module Language.SystemVerilog.Parser.Parse (parse) where

import Control.Monad (when)
import Control.Monad.Except
import Control.Monad.State.Strict
import Data.Maybe (catMaybes, fromMaybe)
Expand Down
1 change: 1 addition & 0 deletions src/Language/SystemVerilog/Parser/Preprocess.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module Language.SystemVerilog.Parser.Preprocess
, Contents
) where

import Control.Monad (when)
import Control.Monad.Except
import Control.Monad.State.Strict
import Data.Char (ord)
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-21.25
resolver: lts-22.19
pvp-bounds: both
ghc-options:
$locals: -j2
Expand Down
8 changes: 4 additions & 4 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
packages: []
snapshots:
- completed:
sha256: a81fb3877c4f9031e1325eb3935122e608d80715dc16b586eb11ddbff8671ecd
size: 640086
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/21/25.yaml
original: lts-21.25
sha256: e5cac927cf7ccbd52aa41476baa68b88c564ee6ddc3bc573dbf4210069287fe7
size: 713340
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/19.yaml
original: lts-22.19

0 comments on commit 3dac47d

Please sign in to comment.