-
Notifications
You must be signed in to change notification settings - Fork 71
Description
Description
The functions copilot-language:Copilot.Language.Operators.Array.(.!!)
and copilot-libraries:Copilot.Library.Utils.(!!)
were deprecated due to the introduction of a new, common interface to interact with structures and arrays.
The original functions were deprecated in Copilot 4 and no messages have been received requesting that they be kept in this library.
As per our internal policy of waiting 3 versions from deprecation until a public interface declaration can be removed, these functions can now be removed.
Type
- Management: remove code deprecated by the introduction of a new feature.
Additional context
- Issue
copilot-language
: Support modifying values in arrays #36 , addressed in Copilot 4, deprecated the functions.
Requester
- Ivan Perez
Method to check presence of bug
Not applicable (not a bug).
Expected result
Running either of the checks above prints a message indicating that the functions imported do not exist.
Running either of the checks above prints a message indicating that the functions imported do not exist. Either of the following should trigger errors:
$ runhaskell <<< 'import Copilot.Language.Operators.Array((.!!)); main = return ()'
$ runhaskell <<< 'import Copilot.Library.Utils ((!!)); main = return ()'
Desired result
Running either of the checks above prints a message indicating that the functions imported do not exist. Either of the following should trigger errors:
$ runhaskell <<< 'import Copilot.Language.Operators.Array((.!!)); main = return ()'
$ runhaskell <<< 'import Copilot.Library.Utils ((!!)); main = return ()'
Proposed solution
Remove the deprecated functions copilot-language:Copilot.Language.Operators.Array.(.!!)
and copilot-libraries:Copilot.Library.Utils.(!!)
, and any references to them. Adjust documentation accordingly, if needed.
Further notes
None.