Commit 307289f6 by Zachary Snow

upgrade to GHC 9.6.4

parent 05cafc3d
...@@ -12,9 +12,11 @@ ...@@ -12,9 +12,11 @@
module Convert.AlwaysKW (convert) where module Convert.AlwaysKW (convert) where
import Control.Monad (when, zipWithM, (>=>))
import Control.Monad.State.Strict import Control.Monad.State.Strict
import Control.Monad.Writer.Strict import Control.Monad.Writer.Strict
import Data.Maybe (fromMaybe, mapMaybe) import Data.Maybe (fromMaybe, mapMaybe)
import Data.Monoid (Any(Any), getAny)
import Convert.Scoper import Convert.Scoper
import Convert.Traverse import Convert.Traverse
......
...@@ -27,9 +27,11 @@ ...@@ -27,9 +27,11 @@
module Convert.Cast (convert) where module Convert.Cast (convert) where
import Control.Monad (when)
import Control.Monad.Writer.Strict import Control.Monad.Writer.Strict
import Data.List (isPrefixOf) import Data.List (isPrefixOf)
import Data.Maybe (isJust) import Data.Maybe (isJust)
import Data.Monoid (Any(Any), getAny)
import Convert.ExprUtils import Convert.ExprUtils
import Convert.Scoper import Convert.Scoper
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
module Convert.GenvarName (convert) where module Convert.GenvarName (convert) where
import Control.Monad (when)
import Control.Monad.State.Strict import Control.Monad.State.Strict
import Control.Monad.Writer.Strict import Control.Monad.Writer.Strict
import Data.Functor ((<&>)) import Data.Functor ((<&>))
......
...@@ -21,6 +21,7 @@ import Language.SystemVerilog.AST ...@@ -21,6 +21,7 @@ import Language.SystemVerilog.AST
import Control.Monad.Writer import Control.Monad.Writer
import Data.Maybe (fromMaybe) import Data.Maybe (fromMaybe)
import Data.Monoid (Any(Any), getAny)
convert :: [AST] -> [AST] convert :: [AST] -> [AST]
convert = map $ traverseDescriptions $ traverseModuleItems convertModuleItem convert = map $ traverseDescriptions $ traverseModuleItems convertModuleItem
......
...@@ -8,6 +8,8 @@ module Convert.Interface (convert, disambiguate) where ...@@ -8,6 +8,8 @@ module Convert.Interface (convert, disambiguate) where
import Data.List (intercalate, (\\)) import Data.List (intercalate, (\\))
import Data.Maybe (isJust, isNothing, mapMaybe) import Data.Maybe (isJust, isNothing, mapMaybe)
import Data.Monoid (Any(Any), getAny)
import Control.Monad (when, (>=>))
import Control.Monad.Writer.Strict import Control.Monad.Writer.Strict
import Text.Read (readMaybe) import Text.Read (readMaybe)
import qualified Data.Map.Strict as Map import qualified Data.Map.Strict as Map
......
...@@ -11,6 +11,7 @@ module Convert.Jump (convert) where ...@@ -11,6 +11,7 @@ module Convert.Jump (convert) where
import Control.Monad.State.Strict import Control.Monad.State.Strict
import Control.Monad.Writer.Strict import Control.Monad.Writer.Strict
import Data.Monoid (Any(Any), getAny)
import Convert.Traverse import Convert.Traverse
import Language.SystemVerilog.AST import Language.SystemVerilog.AST
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
module Convert.Logic (convert) where module Convert.Logic (convert) where
import Control.Monad (when)
import Control.Monad.Writer.Strict 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
......
...@@ -23,6 +23,7 @@ module Convert.Package ...@@ -23,6 +23,7 @@ module Convert.Package
, prefixItems , prefixItems
) where ) where
import Control.Monad (when, (>=>))
import Control.Monad.State.Strict import Control.Monad.State.Strict
import Control.Monad.Writer.Strict import Control.Monad.Writer.Strict
import Data.Functor ((<&>)) import Data.Functor ((<&>))
......
...@@ -14,6 +14,7 @@ ...@@ -14,6 +14,7 @@
module Convert.ParamNoDefault (convert) where module Convert.ParamNoDefault (convert) where
import Control.Monad (when)
import Control.Monad.Writer.Strict import Control.Monad.Writer.Strict
import Data.List (intercalate) import Data.List (intercalate)
import qualified Data.Map.Strict as Map import qualified Data.Map.Strict as Map
......
...@@ -10,6 +10,7 @@ import Control.Monad.Writer.Strict ...@@ -10,6 +10,7 @@ import Control.Monad.Writer.Strict
import Data.Either (isRight, lefts) import Data.Either (isRight, lefts)
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
import Data.Monoid (Any(Any), getAny)
import Convert.Traverse import Convert.Traverse
import Language.SystemVerilog.AST import Language.SystemVerilog.AST
......
...@@ -70,6 +70,7 @@ module Convert.Scoper ...@@ -70,6 +70,7 @@ module Convert.Scoper
, LookupResult , LookupResult
) where ) where
import Control.Monad (join, when)
import Control.Monad.State.Strict import Control.Monad.State.Strict
import Data.List (findIndices, intercalate, isPrefixOf, partition) import Data.List (findIndices, intercalate, isPrefixOf, partition)
import Data.Maybe (isNothing) import Data.Maybe (isNothing)
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
module Convert.StringParam (convert) where module Convert.StringParam (convert) where
import Control.Monad (when)
import Control.Monad.Writer.Strict import Control.Monad.Writer.Strict
import Data.Maybe (mapMaybe) import Data.Maybe (mapMaybe)
import qualified Data.Set as Set import qualified Data.Set as Set
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
module Convert.StructConst (convert) where module Convert.StructConst (convert) where
import Control.Monad (join, mplus, when)
import Control.Monad.State.Strict import Control.Monad.State.Strict
import Data.Maybe (fromMaybe) import Data.Maybe (fromMaybe)
import Data.Tuple (swap) import Data.Tuple (swap)
......
...@@ -112,6 +112,7 @@ module Convert.Traverse ...@@ -112,6 +112,7 @@ module Convert.Traverse
import Data.Bitraversable (bimapM) import Data.Bitraversable (bimapM)
import Data.Functor.Identity (Identity, runIdentity) import Data.Functor.Identity (Identity, runIdentity)
import Control.Monad ((>=>))
import Control.Monad.Writer.Strict import Control.Monad.Writer.Strict
import Language.SystemVerilog.AST import Language.SystemVerilog.AST
......
...@@ -20,6 +20,7 @@ import Control.Monad.Writer.Strict ...@@ -20,6 +20,7 @@ import Control.Monad.Writer.Strict
import Data.Either (isLeft) import Data.Either (isLeft)
import Data.Maybe (isNothing, mapMaybe) import Data.Maybe (isNothing, mapMaybe)
import qualified Data.Map.Strict as Map import qualified Data.Map.Strict as Map
import Data.Monoid (Any(Any), getAny)
import Convert.Package (inject, prefixItems) import Convert.Package (inject, prefixItems)
import Convert.Traverse import Convert.Traverse
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
module Convert.UnnamedGenBlock (convert) where module Convert.UnnamedGenBlock (convert) where
import Control.Monad (when)
import Control.Monad.State.Strict import Control.Monad.State.Strict
import Data.List (isPrefixOf) import Data.List (isPrefixOf)
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
module Convert.UnpackedArray (convert) where module Convert.UnpackedArray (convert) where
import Control.Monad (when, (>=>))
import Control.Monad.State.Strict import Control.Monad.State.Strict
import qualified Data.Map.Strict as Map import qualified Data.Map.Strict as Map
......
...@@ -6,6 +6,8 @@ module Language.SystemVerilog.Parser ...@@ -6,6 +6,8 @@ module Language.SystemVerilog.Parser
, Config(..) , Config(..)
) where ) where
import Control.Monad (when)
import Control.Monad.IO.Class (liftIO)
import Control.Monad.Except import Control.Monad.Except
import Data.List (elemIndex) import Data.List (elemIndex)
import Data.Maybe (catMaybes) import Data.Maybe (catMaybes)
......
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
{-# LANGUAGE BlockArguments #-} {-# LANGUAGE BlockArguments #-}
module Language.SystemVerilog.Parser.Parse (parse) where module Language.SystemVerilog.Parser.Parse (parse) where
import Control.Monad (when)
import Control.Monad.Except import Control.Monad.Except
import Control.Monad.State.Strict import Control.Monad.State.Strict
import Data.Maybe (catMaybes, fromMaybe) import Data.Maybe (catMaybes, fromMaybe)
......
...@@ -14,6 +14,7 @@ module Language.SystemVerilog.Parser.Preprocess ...@@ -14,6 +14,7 @@ module Language.SystemVerilog.Parser.Preprocess
, Contents , Contents
) where ) where
import Control.Monad (when)
import Control.Monad.Except import Control.Monad.Except
import Control.Monad.State.Strict import Control.Monad.State.Strict
import Data.Char (ord) import Data.Char (ord)
......
resolver: lts-21.25 resolver: lts-22.19
pvp-bounds: both pvp-bounds: both
ghc-options: ghc-options:
$locals: -j2 $locals: -j2
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
packages: [] packages: []
snapshots: snapshots:
- completed: - completed:
sha256: a81fb3877c4f9031e1325eb3935122e608d80715dc16b586eb11ddbff8671ecd sha256: e5cac927cf7ccbd52aa41476baa68b88c564ee6ddc3bc573dbf4210069287fe7
size: 640086 size: 713340
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/21/25.yaml url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/19.yaml
original: lts-21.25 original: lts-22.19
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