Asking dnf to remove ocaml make it remove Haskell... and much more

I did a ‘dnf autoremove’ before this… to eliminate the possibility that this is the problem.

paul@fedora:~$ sudo dnf remove ocaml ocaml-runtime ocaml-srpm-macros
Dépendances résolues.
================================================================================================================================================================================
 Paquet                                             Architecture                   Version                                       Dépôt                                    Taille
================================================================================================================================================================================
Suppression:
 ocaml                                              x86_64                         5.1.1-4.fc40                                  @fedora                                  129 M
 ocaml-runtime                                      x86_64                         5.1.1-4.fc40                                  @fedora                                  5.5 M
 ocaml-srpm-macros                                  noarch                         9-3.fc40                                      @fedora                                  1.9 k
Supprimer des paquets dépendants:
 cabal-rpm                                          x86_64                         2.2.1-1.fc40                                  @updates                                  52 M
 pyproject-rpm-macros                               noarch                         1.13.0-1.fc40                                 @updates                                 103 k
 python-rpm-macros                                  noarch                         3.12-8.fc40                                   @updates                                  22 k
 python2.7                                          x86_64                         2.7.18-43.fc40                                @updates                                  56 M
 python3-rpm-generators                             noarch                         14-10.fc40                                    @fedora                                   82 k
 python3-rpm-macros                                 noarch                         3.12-8.fc40                                   @updates                                 6.4 k
 redhat-rpm-config                                  noarch                         288-1.fc40                                    @updates                                 185 k
 rpm-build                                          x86_64                         4.19.1.1-1.fc40                               @fedora                                  174 k
 rpmdevtools                                        noarch                         9.6-7.fc40                                    @fedora                                  214 k
Suppression des dépendances inutilisées:
 annobin-docs                                       noarch                         12.60-1.fc40                                  @updates                                  96 k
 annobin-plugin-gcc                                 x86_64                         12.60-1.fc40                                  @updates                                 976 k
 ansible-srpm-macros                                noarch                         1-14.fc40                                     @fedora                                   36 k
 cabal-install                                      x86_64                         3.8.1.0-7.fc40                                @fedora                                   45 M
 chrpath                                            x86_64                         0.16-23.fc40                                  @fedora                                   55 k
 debugedit                                          x86_64                         5.0-14.fc40                                   @fedora                                  199 k
 dwz                                                x86_64                         0.15-6.fc40                                   @fedora                                  291 k
 efi-srpm-macros                                    noarch                         5-11.fc40                                     @fedora                                   40 k
 fakeroot                                           x86_64                         1.34-1.fc40                                   @updates                                 163 k
 fakeroot-libs                                      x86_64                         1.34-1.fc40                                   @updates                                 125 k
 fonts-srpm-macros                                  noarch                         1:2.0.5-14.fc40                               @fedora                                   55 k
 forge-srpm-macros                                  noarch                         0.3.2-1.fc40                                  @updates                                  39 k
 fpc-srpm-macros                                    noarch                         1.3-12.fc40                                   @fedora                                  144  
 gcc-plugin-annobin                                 x86_64                         14.2.1-1.fc40                                 @updates                                  57 k
 ghc                                                x86_64                         9.4.5-142.fc40                                @updates                                   0  
 ghc-Cabal-devel                                    x86_64                         3.8.1.0-142.fc40                              @updates                                  28 M
 ghc-Cabal-doc                                      noarch                         3.8.1.0-142.fc40                              @updates                                  26 M
 ghc-Cabal-prof                                     x86_64                         3.8.1.0-142.fc40                              @updates                                  35 M
 ghc-Cabal-syntax-devel                             x86_64                         3.8.1.0-142.fc40                              @updates                                  51 M
 ghc-Cabal-syntax-doc                               noarch                         3.8.1.0-142.fc40                              @updates                                  37 M
 ghc-Cabal-syntax-prof                              x86_64                         3.8.1.0-142.fc40                              @updates                                  55 M
 ghc-array-devel                                    x86_64                         0.5.4.0-142.fc40                              @updates                                 1.9 M
 ghc-array-doc                                      noarch                         0.5.4.0-142.fc40                              @updates                                 2.8 M
 ghc-array-prof                                     x86_64                         0.5.4.0-142.fc40                              @updates                                 1.9 M
 ghc-binary-devel                                   x86_64                         0.8.9.1-142.fc40                              @updates                                 2.1 M
 ghc-binary-doc                                     noarch                         0.8.9.1-142.fc40                              @updates                                 2.0 M
 ghc-binary-prof                                    x86_64                         0.8.9.1-142.fc40                              @updates                                 2.8 M
 ghc-bytestring-devel                               x86_64                         0.11.4.0-142.fc40                             @updates                                 4.1 M
 ghc-bytestring-doc                                 noarch                         0.11.4.0-142.fc40                             @updates                                 9.5 M
 ghc-bytestring-prof                                x86_64                         0.11.4.0-142.fc40                             @updates                                 4.6 M
 ghc-containers-devel                               x86_64                         0.6.7-142.fc40                                @updates                                 8.6 M
 ghc-containers-doc                                 noarch                         0.6.7-142.fc40                                @updates                                  20 M
 ghc-containers-prof                                x86_64                         0.6.7-142.fc40                                @updates                                  12 M
 ghc-deepseq-devel                                  x86_64                         1.4.8.0-142.fc40                              @updates                                 347 k
 ghc-deepseq-doc                                    noarch                         1.4.8.0-142.fc40                              @updates                                 810 k
 ghc-deepseq-prof                                   x86_64                         1.4.8.0-142.fc40                              @updates                                 335 k
 ghc-devel                                          x86_64                         9.4.5-142.fc40                                @updates                                   0  
 ghc-directory-devel                                x86_64                         1.3.7.1-142.fc40                              @updates                                 1.0 M
 ghc-directory-doc                                  noarch                         1.3.7.1-142.fc40                              @updates                                 1.4 M
 ghc-directory-prof                                 x86_64                         1.3.7.1-142.fc40                              @updates                                 1.2 M
 ghc-exceptions-devel                               x86_64                         0.10.5-142.fc40                               @updates                                 708 k
 ghc-exceptions-doc                                 noarch                         0.10.5-142.fc40                               @updates                                 1.2 M
 ghc-exceptions-prof                                x86_64                         0.10.5-142.fc40                               @updates                                 895 k
 ghc-filepath-devel                                 x86_64                         1.4.2.2-142.fc40                              @updates                                 330 k
 ghc-filepath-doc                                   noarch                         1.4.2.2-142.fc40                              @updates                                 1.3 M
 ghc-filepath-prof                                  x86_64                         1.4.2.2-142.fc40                              @updates                                 413 k
 ghc-ghc-boot-devel                                 x86_64                         9.4.5-142.fc40                                @updates                                 3.4 M
 ghc-ghc-boot-doc                                   noarch                         9.4.5-142.fc40                                @updates                                 1.6 M
 ghc-ghc-boot-prof                                  x86_64                         9.4.5-142.fc40                                @updates                                 3.2 M
 ghc-ghc-boot-th-devel                              x86_64                         9.4.5-142.fc40                                @updates                                 580 k
 ghc-ghc-boot-th-doc                                noarch                         9.4.5-142.fc40                                @updates                                 370 k
 ghc-ghc-boot-th-prof                               x86_64                         9.4.5-142.fc40                                @updates                                 590 k
 ghc-ghc-compact                                    x86_64                         0.1.0.0-142.fc40                              @updates                                  48 k
 ghc-ghc-compact-devel                              x86_64                         0.1.0.0-142.fc40                              @updates                                 115 k
 ghc-ghc-compact-doc                                noarch                         0.1.0.0-142.fc40                              @updates                                 350 k
 ghc-ghc-compact-prof                               x86_64                         0.1.0.0-142.fc40                              @updates                                 127 k
 ghc-ghc-devel                                      x86_64                         9.4.5-142.fc40                                @updates                                 201 M
 ghc-ghc-doc                                        noarch                         9.4.5-142.fc40                                @updates                                 291 M
 ghc-ghc-heap-devel                                 x86_64                         9.4.5-142.fc40                                @updates                                 5.8 M
 ghc-ghc-heap-doc                                   noarch                         9.4.5-142.fc40                                @updates                                 2.2 M
 ghc-ghc-heap-prof                                  x86_64                         9.4.5-142.fc40                                @updates                                 4.2 M
 ghc-ghc-prof                                       x86_64                         9.4.5-142.fc40                                @updates                                 274 M
 ghc-ghci-devel                                     x86_64                         9.4.5-142.fc40                                @updates                                  13 M
 ghc-ghci-doc                                       noarch                         9.4.5-142.fc40                                @updates                                 2.3 M
 ghc-ghci-prof                                      x86_64                         9.4.5-142.fc40                                @updates                                  12 M
 ghc-haskeline-devel                                x86_64                         0.8.2-142.fc40                                @updates                                 4.0 M
 ghc-haskeline-doc                                  noarch                         0.8.2-142.fc40                                @updates                                 3.5 M
 ghc-haskeline-prof                                 x86_64                         0.8.2-142.fc40                                @updates                                 5.9 M
 ghc-hpc-devel                                      x86_64                         0.6.1.0-142.fc40                              @updates                                 470 k
 ghc-hpc-doc                                        noarch                         0.6.1.0-142.fc40                              @updates                                 520 k
 ghc-hpc-prof                                       x86_64                         0.6.1.0-142.fc40                              @updates                                 576 k
 ghc-libiserv-devel                                 x86_64                         9.4.5-142.fc40                                @updates                                  58 k
 ghc-libiserv-doc                                   noarch                         9.4.5-142.fc40                                @updates                                 166 k
 ghc-libiserv-prof                                  x86_64                         9.4.5-142.fc40                                @updates                                  86 k
 ghc-mtl-devel                                      x86_64                         2.2.2-142.fc40                                @updates                                 801 k
 ghc-mtl-doc                                        noarch                         2.2.2-142.fc40                                @updates                                 2.0 M
 ghc-mtl-prof                                       x86_64                         2.2.2-142.fc40                                @updates                                 933 k
 ghc-parsec-devel                                   x86_64                         3.1.16.1-142.fc40                             @updates                                 2.7 M
 ghc-parsec-doc                                     noarch                         3.1.16.1-142.fc40                             @updates                                 3.0 M
 ghc-parsec-prof                                    x86_64                         3.1.16.1-142.fc40                             @updates                                 3.7 M
 ghc-pretty-devel                                   x86_64                         1.1.3.6-142.fc40                              @updates                                 1.3 M
 ghc-pretty-doc                                     noarch                         1.1.3.6-142.fc40                              @updates                                 2.0 M
 ghc-pretty-prof                                    x86_64                         1.1.3.6-142.fc40                              @updates                                 1.4 M
 ghc-process-devel                                  x86_64                         1.6.16.0-142.fc40                             @updates                                 611 k
 ghc-process-doc                                    noarch                         1.6.16.0-142.fc40                             @updates                                 1.1 M
 ghc-process-prof                                   x86_64                         1.6.16.0-142.fc40                             @updates                                 753 k
 ghc-rpm-macros                                     noarch                         2.7.0-1.fc40                                  @fedora                                   52 k
 ghc-srpm-macros                                    noarch                         1.9-1.fc40                                    @updates-testing                         716  
 ghc-stm-devel                                      x86_64                         2.5.1.0-142.fc40                              @updates                                 406 k
 ghc-stm-doc                                        noarch                         2.5.1.0-142.fc40                              @updates                                 851 k
 ghc-stm-prof                                       x86_64                         2.5.1.0-142.fc40                              @updates                                 405 k
 ghc-template-haskell-devel                         x86_64                         2.19.0.0-142.fc40                             @updates                                  11 M
 ghc-template-haskell-doc                           noarch                         2.19.0.0-142.fc40                             @updates                                  11 M
 ghc-template-haskell-prof                          x86_64                         2.19.0.0-142.fc40                             @updates                                  13 M
 ghc-terminfo-devel                                 x86_64                         0.4.1.5-142.fc40                              @updates                                 637 k
 ghc-terminfo-doc                                   noarch                         0.4.1.5-142.fc40                              @updates                                 795 k
 ghc-terminfo-prof                                  x86_64                         0.4.1.5-142.fc40                              @updates                                 736 k
 ghc-text-devel                                     x86_64                         2.0.2-142.fc40                                @updates                                 6.9 M
 ghc-text-doc                                       noarch                         2.0.2-142.fc40                                @updates                                  12 M
 ghc-text-prof                                      x86_64                         2.0.2-142.fc40                                @updates                                 8.5 M
 ghc-time-devel                                     x86_64                         1.12.2-142.fc40                               @updates                                 4.3 M
 ghc-time-doc                                       noarch                         1.12.2-142.fc40                               @updates                                 4.7 M
 ghc-time-prof                                      x86_64                         1.12.2-142.fc40                               @updates                                 5.3 M
 ghc-transformers-devel                             x86_64                         0.5.6.2-142.fc40                              @updates                                 4.4 M
 ghc-transformers-doc                               noarch                         0.5.6.2-142.fc40                              @updates                                 5.0 M
 ghc-transformers-prof                              x86_64                         0.5.6.2-142.fc40                              @updates                                 5.4 M
 ghc-unix-devel                                     x86_64                         2.7.3-142.fc40                                @updates                                 2.8 M
 ghc-unix-doc                                       noarch                         2.7.3-142.fc40                                @updates                                 4.3 M
 ghc-unix-prof                                      x86_64                         2.7.3-142.fc40                                @updates                                 2.9 M
 ghc-xhtml-devel                                    x86_64                         3000.2.2.1-142.fc40                           @updates                                 986 k
 ghc-xhtml-doc                                      noarch                         3000.2.2.1-142.fc40                           @updates                                 1.7 M
 ghc-xhtml-prof                                     x86_64                         3000.2.2.1-142.fc40                           @updates                                 1.2 M
 gnat-srpm-macros                                   noarch                         6-5.fc40                                      @fedora                                  1.0 k
 go-srpm-macros                                     noarch                         3.5.0-1.fc40                                  @updates-testing                          61 k
 kernel-srpm-macros                                 noarch                         1.0-23.fc40                                   @updates-testing                         1.9 k
 libgit2                                            x86_64                         1.7.2-4.fc40                                  @updates                                 1.2 M
 lua-srpm-macros                                    noarch                         1-13.fc40                                     @fedora                                  1.3 k
 openblas-srpm-macros                               noarch                         2-16.fc40                                     @fedora                                  104  
 package-notes-srpm-macros                          noarch                         0.5-11.fc40                                   @fedora                                  1.6 k
 perl-srpm-macros                                   noarch                         1-53.fc40                                     @fedora                                  861  
 pyproject-srpm-macros                              noarch                         1.13.0-1.fc40                                 @updates                                 1.5 k
 python-srpm-macros                                 noarch                         3.12-8.fc40                                   @updates                                  51 k
 python3-click-plugins                              noarch                         1.1.1-19.fc40                                 @fedora                                   24 k
 python3-progressbar2                               noarch                         3.53.2-11.fc40                                @fedora                                  257 k
 python3-pygit2                                     x86_64                         1.14.0-1.fc40                                 @fedora                                  1.2 M
 python3-rpmautospec                                noarch                         0.7.2-1.fc40                                  @updates                                 149 k
 python3-rpmautospec-core                           noarch                         0.1.5-1.fc40                                  @updates                                  11 k
 python3-utils                                      noarch                         3.7.0-3.fc40                                  @fedora                                  173 k
 qt5-srpm-macros                                    noarch                         5.15.14-2.fc40                                @updates                                 500  
 qt6-srpm-macros                                    noarch                         6.7.2-2.fc40                                  @updates                                 456  
 rust-srpm-macros                                   noarch                         26.3-1.fc40                                   @updates                                 4.8 k
 stack                                              x86_64                         2.9.3.1-31.fc40                               @updates                                  74 M
 tix                                                x86_64                         1:8.4.3-40.fc40                               @fedora                                  977 k
 zig-srpm-macros                                    noarch                         1-2.fc40                                      @fedora                                  1.1 k

Résumé de la transaction
================================================================================================================================================================================
Supprimer  146 Paquets

Espace libéré : 1.6 G
Voulez-vous continuer ? [o/N] : n
Opération avortée.
paul@fedora:~$

It does not feel right to me. Seems too many packages.

Ah sorry… it looks like I need to keep: ocaml-srpm-macros.

paul@fedora:~$ sudo dnf remove ocaml ocaml-runtime
[sudo] Mot de passe de paul : 
Dépendances résolues.
================================================================================================================================================================================
 Paquet                                       Architecture                          Version                                        Dépôt                                  Taille
================================================================================================================================================================================
Suppression:
 ocaml                                        x86_64                                5.1.1-4.fc40                                   @fedora                                129 M
 ocaml-runtime                                x86_64                                5.1.1-4.fc40                                   @fedora                                5.5 M

Résumé de la transaction
================================================================================================================================================================================
Supprimer  2 Paquets

Espace libéré : 134 M
Voulez-vous continuer ? [o/N] :