Skip to content

Commit 83086bf

Browse files
copilot-language: Remove deprecated function Copilot.Language.Operators.Array.(.!!). Refs #599.
The function `copilot-language:Copilot.Language.Operators.Array.(.!!)` was deprecated due to the introduction of a new, common interface to interact with structures and arrays. The original function was deprecated in Copilot 4 and no messages have been received requesting that it be kept in this library. Per our internal policy of waiting 3 versions from deprecation until a public interface declaration can be removed, this function can now be removed. This commit removes the function `copilot-language:Copilot.Language.Operators.Array.(.!!)`.
1 parent ca626c0 commit 83086bf

File tree

1 file changed

+1
-14
lines changed
  • copilot-language/src/Copilot/Language/Operators

1 file changed

+1
-14
lines changed

copilot-language/src/Copilot/Language/Operators/Array.hs

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88

99
-- | Combinators to deal with streams carrying arrays.
1010
module Copilot.Language.Operators.Array
11-
( (.!!)
12-
, (!)
11+
( (!)
1312
, (!!)
1413
, (=:)
1514
, (=$)
@@ -34,18 +33,6 @@ import Prelude hiding ((!!))
3433
=> Stream (Array n t) -> Stream Word32 -> Stream t
3534
arr ! n = Op2 (Index typeOf) arr n
3635

37-
-- | Create a stream that carries an element of an array in another stream.
38-
--
39-
-- This function implements a projection of the element of an array at a given
40-
-- position, over time. For example, if @s@ is a stream of type @Stream (Array
41-
-- '5 Word8)@, then @s .!! 3@ has type @Stream Word8@ and contains the 3rd
42-
-- element (starting from zero) of the arrays in @s@ at any point in time.
43-
{-# DEPRECATED (.!!) "This function is deprecated in Copilot 4. Use (!)." #-}
44-
(.!!) :: ( KnownNat n
45-
, Typed t
46-
) => Stream (Array n t) -> Stream Word32 -> Stream t
47-
(.!!) = (!)
48-
4936
-- | Pair a stream with an element accessor, without applying it to obtain the
5037
-- value of the element.
5138
--

0 commit comments

Comments
 (0)