Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit b7bbd5d

Browse files
authored
Preparation for GHC-9.0 (#78)
This fixes some would-be warnings in GHC-9.0 that we're going to switch to once #76 is merged.
1 parent 80e14e3 commit b7bbd5d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/IC/Purify.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ module IC.Purify where
77

88
import Control.Monad.ST
99
import Data.Functor
10+
import Data.Kind (Type)
1011
import Data.Either
1112
import Data.Bifunctor
1213

1314
class SnapshotAble i where
14-
type SnapshotOf i :: *
15+
type SnapshotOf i :: Type
1516
persist :: i s -> ST s (SnapshotOf i)
1617
recreate :: SnapshotOf i -> ST s (i s)
1718

src/IC/Test/Agent.hs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ import Numeric.Natural
4444
import Data.Char
4545
import Test.Tasty.HUnit
4646
import Test.Tasty.Options
47-
import Control.Monad.Trans
4847
import Control.Monad.Except
4948
import Control.Concurrent
5049
import Control.Exception (catch)
@@ -128,7 +127,7 @@ connect :: String -> Int -> IO ReplWrapper
128127
connect ep tp = do
129128
agentConfig <- makeAgentConfig ep tp
130129
let ?agentConfig = agentConfig
131-
return (R id)
130+
return (R $ \x -> x)
132131

133132
-- Yes, implicit arguments are frowned upon. But they are also very useful.
134133

src/IC/Wasm/Winter/Persist.hs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import qualified Data.IntMap as IM
2727
import qualified Data.Map.Lazy as M
2828
import qualified Data.Vector as V
2929
import Data.ByteString.Lazy (ByteString)
30+
import Data.Kind (Type)
3031

3132
import qualified IC.Canister.StableMemory as Stable
3233

@@ -56,8 +57,8 @@ resumeMemory :: W.MemoryInst (ST s) -> ByteString -> ST s ()
5657
resumeMemory i p = resume i p
5758

5859
class Monad (M a) => Persistable a where
59-
type Persisted a :: *
60-
type M a :: * -> *
60+
type Persisted a :: Type
61+
type M a :: Type -> Type
6162
persist :: a -> M a (Persisted a)
6263
resume :: a -> Persisted a -> M a ()
6364

0 commit comments

Comments
 (0)