packages feed

copilot-libraries 4.2 → 4.3

raw patch · 4 files changed

+9/−12 lines, 4 filesdep ~copilot-languagePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: copilot-language

API changes (from Hackage documentation)

- Copilot.Library.Libraries: (!!!) :: (Typed a, Eq b, Num b, Typed b) => [Stream a] -> Stream b -> Stream a
- Copilot.Library.Libraries: case' :: Typed a => [Stream Bool] -> [Stream a] -> Stream a
- Copilot.Library.Libraries: cycle :: Typed a => [a] -> Stream a
- Copilot.Library.Libraries: nfoldl :: (Typed a, Typed b) => Int -> (Stream a -> Stream b -> Stream a) -> Stream a -> Stream b -> Stream a
- Copilot.Library.Libraries: nfoldl1 :: Typed a => Int -> (Stream a -> Stream a -> Stream a) -> Stream a -> Stream a
- Copilot.Library.Libraries: nfoldr :: (Typed a, Typed b) => Int -> (Stream a -> Stream b -> Stream b) -> Stream b -> Stream a -> Stream b
- Copilot.Library.Libraries: nfoldr1 :: Typed a => Int -> (Stream a -> Stream a -> Stream a) -> Stream a -> Stream a
- Copilot.Library.Libraries: nscanl :: (Typed a, Typed b) => Int -> (Stream a -> Stream b -> Stream a) -> Stream a -> Stream b -> [Stream a]
- Copilot.Library.Libraries: nscanl1 :: Typed a => Int -> (Stream a -> Stream a -> Stream a) -> Stream a -> [Stream a]
- Copilot.Library.Libraries: nscanr :: Typed a => Int -> (Stream a -> Stream b -> Stream b) -> Stream b -> Stream a -> [Stream b]
- Copilot.Library.Libraries: nscanr1 :: Typed a => Int -> (Stream a -> Stream a -> Stream a) -> Stream a -> [Stream a]
- Copilot.Library.Libraries: tails :: Typed a => Stream a -> [Stream a]
- Copilot.Library.Libraries: take :: (Integral a, Typed b) => a -> Stream b -> [Stream b]
- Copilot.Library.Utils: (!!) :: (Typed a, Eq b, Num b, Typed b) => [Stream a] -> Stream b -> Stream a

Files

CHANGELOG view
@@ -1,3 +1,7 @@+2025-03-07+        * Version bump (4.3). (#604)+        * Remove deprecated function Copilot.Library.Utils.(!!). (#599)+ 2025-01-07         * Version bump (4.2). (#577)         * Bump upper version constraint on containers. (#570)
copilot-libraries.cabal view
@@ -1,6 +1,6 @@ cabal-version:       >=1.10 name:                copilot-libraries-version:             4.2+version:             4.3 synopsis:            Libraries for the Copilot language. description:   Libraries for the Copilot language.@@ -41,7 +41,7 @@                , containers       >= 0.4 && < 0.8                , mtl              >= 2.0 && < 2.4                , parsec           >= 2.0 && < 3.2-               , copilot-language >= 4.2 && < 4.3+               , copilot-language >= 4.3 && < 4.4    exposed-modules:       Copilot.Library.Libraries
src/Copilot/Library/Libraries.hs view
@@ -23,6 +23,6 @@ import Copilot.Library.PTLTL import Copilot.Library.Statistics import Copilot.Library.RegExp-import Copilot.Library.Utils      hiding ((!!))+import Copilot.Library.Utils import Copilot.Library.Voting import Copilot.Library.Stacks
src/Copilot/Library/Utils.hs view
@@ -13,10 +13,10 @@          -- ** Scans          nscanl, nscanr, nscanl1, nscanr1,          -- ** Indexing-         case', (!!), (!!!))+         case', (!!!)) where -import Copilot.Language hiding ((!!))+import Copilot.Language import qualified Prelude as P  -- | Given a stream, produce an infinite list of streams dropping an increasing@@ -130,13 +130,6 @@                    P.++ "length of alternatives list is not "                    P.++ "greater by one than the length of predicates list"   in case'' predicates alternatives---- | Index.------ WARNING: Very expensive! Consider using this only for very short lists.-(!!) :: (Typed a, Eq b, Num b, Typed b) => [Stream a] -> Stream b -> Stream a-(!!) = (!!!)-{-# DEPRECATED (!!) "This function is deprecated in Copilot 4. Use (!!!)." #-}  -- | Index. --