Skip to content

Commit 1116efe

Browse files
ai overlord
1 parent f2cb614 commit 1116efe

File tree

1 file changed

+2
-3
lines changed
  • typed-protocols/properties/Network/TypedProtocol/Codec

1 file changed

+2
-3
lines changed

typed-protocols/properties/Network/TypedProtocol/Codec/Properties.hs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,8 @@ prop_codecF_splitsM conv mkChannel runDecoder' splits
187187
Codec {encode, decode} (AnyMessage (msg :: Message ps st st')) = do
188188
property . foldMap Every <$> sequence
189189
[ do
190-
let stateM = newSTRef $ tail bytes'
191-
channelAction = stToIO $ do
192-
stateRef <- stateM
190+
stateRef <- stToIO . newSTRef $ tail bytes'
191+
let channelAction = stToIO $ do
193192
chunksRemaining <- readSTRef stateRef
194193
modifySTRef' stateRef (drop 1)
195194
return $! listToMaybe chunksRemaining

0 commit comments

Comments
 (0)