distributive currently produces -Wincomplete-uni-patterns warnings when built with GHC 9.2:
[ 3 of 21] Compiling Data.Rep.Internal ( src/Data/Rep/Internal.hs, /home/ryanglscott/Documents/Hacking/Haskell/ci-maintenance/checkout/ekmett/distributive/dist-newstyle/build/x86_64-linux/ghc-9.2.2/distributive-1/build/Data/Rep/Internal.o, /home/ryanglscott/Documents/Hacking/Haskell/ci-maintenance/checkout/ekmett/distributive/dist-newstyle/build/x86_64-linux/ghc-9.2.2/distributive-1/build/Data/Rep/Internal.dyn_o )
src/Data/Rep/Internal.hs:368:41: warning: [-Wincomplete-uni-patterns]
Pattern match(es) are non-exhaustive
In a lambda abstraction:
Patterns of type ‘FCompose a f Identity’ not matched: FCompose' _
|
368 | distribute = \f -> distrib (FCompose f) \(FCompose f') -> runIdentity <$> f'
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<and many others...>
I believe the underlying cause is the FCompose pattern synonym not having a COMPLETE pragma. This patch adds one.
distributive
currently produces-Wincomplete-uni-patterns
warnings when built with GHC 9.2:I believe the underlying cause is the
FCompose
pattern synonym not having aCOMPLETE
pragma. This patch adds one.