phadej / cabal-extras

A tool suite to aid Haskell development using `cabal-install`
81 stars 18 forks source link

cabal-diff: compare different modules in the same release #90

Open harendra-kumar opened 3 years ago

harendra-kumar commented 3 years ago

Sometimes we rename a module and deprecate the old one. We want to know whether there has been an API in change in the renamed module vs the original module.

phadej commented 3 years ago

This makes some sense. Maybe it could also work for diffing Data.ByteString and Data.ByteString.Lazy (at least as long as strict and lazy ByteString are just ByteString).

This would need some plan, how the cli interface would look like.

harendra-kumar commented 3 years ago

How about something like this to begin with:

cabal-diff streamly 0.7.3:Streamly.Data.Unicode.Stream 0.8.0:Streamly.Unicode.Stream

We may also want to diff multiple modules at a time, for that we will need to specify a list of modules, but that might make the CLI overly complicated, perhaps better left to scripting.