Skip to content

Add support for ghc 9.10.1 #149

@erikd

Description

@erikd

Bunch of things seem to have changed:

Configuring library for protolude-0.3.4..
Preprocessing library for protolude-0.3.4..
Building library for protolude-0.3.4..
src/Protolude/Error.hs:7:14: warning: [GHC-53692] [-Wdeprecated-flags]
    -XTypeInType is deprecated: use -XDataKinds and -XPolyKinds instead
  |
7 | {-# LANGUAGE TypeInType #-}
  |              ^^^^^^^^^^

[ 1 of 21] Compiling Protolude.Applicative ( src/Protolude/Applicative.hs, dist/build/Protolude/Applicative.o, dist/build/Protolude/Applicative.dyn_o )
[ 2 of 21] Compiling Protolude.Base   ( src/Protolude/Base.hs, dist/build/Protolude/Base.o, dist/build/Protolude/Base.dyn_o )
[ 3 of 21] Compiling Protolude.Bifunctor ( src/Protolude/Bifunctor.hs, dist/build/Protolude/Bifunctor.o, dist/build/Protolude/Bifunctor.dyn_o )
[ 4 of 21] Compiling Protolude.Bool   ( src/Protolude/Bool.hs, dist/build/Protolude/Bool.o, dist/build/Protolude/Bool.dyn_o )
[ 5 of 21] Compiling Protolude.CallStack ( src/Protolude/CallStack.hs, dist/build/Protolude/CallStack.o, dist/build/Protolude/CallStack.dyn_o )
[ 6 of 21] Compiling Protolude.Conv   ( src/Protolude/Conv.hs, dist/build/Protolude/Conv.o, dist/build/Protolude/Conv.dyn_o )
[ 7 of 21] Compiling Protolude.ConvertText ( src/Protolude/ConvertText.hs, dist/build/Protolude/ConvertText.o, dist/build/Protolude/ConvertText.dyn_o )
[ 8 of 21] Compiling Protolude.Either ( src/Protolude/Either.hs, dist/build/Protolude/Either.o, dist/build/Protolude/Either.dyn_o )
[ 9 of 21] Compiling Protolude.Error  ( src/Protolude/Error.hs, dist/build/Protolude/Error.o, dist/build/Protolude/Error.dyn_o )
[10 of 21] Compiling Protolude.Exceptions ( src/Protolude/Exceptions.hs, dist/build/Protolude/Exceptions.o, dist/build/Protolude/Exceptions.dyn_o )
[11 of 21] Compiling Protolude.Functor ( src/Protolude/Functor.hs, dist/build/Protolude/Functor.o, dist/build/Protolude/Functor.dyn_o )
[12 of 21] Compiling Protolude.List   ( src/Protolude/List.hs, dist/build/Protolude/List.o, dist/build/Protolude/List.dyn_o )
src/Protolude/List.hs:23:1: error: [GHC-44360]
    GHC.Num: Can't be safely imported! The module itself isn't safe.
   |
23 | import GHC.Num ((*), (+), Num)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[13 of 21] Compiling Protolude.Monad  ( src/Protolude/Monad.hs, dist/build/Protolude/Monad.o, dist/build/Protolude/Monad.dyn_o )
[14 of 21] Compiling Protolude.Panic  ( src/Protolude/Panic.hs, dist/build/Protolude/Panic.o, dist/build/Protolude/Panic.dyn_o )
[15 of 21] Compiling Protolude.Partial ( src/Protolude/Partial.hs, dist/build/Protolude/Partial.o, dist/build/Protolude/Partial.dyn_o )
[16 of 21] Compiling Protolude.Safe   ( src/Protolude/Safe.hs, dist/build/Protolude/Safe.o, dist/build/Protolude/Safe.dyn_o )
src/Protolude/Safe.hs:38:1: error: [GHC-44360]
    GHC.Num: Can't be safely imported! The module itself isn't safe.
   |
38 | import GHC.Num ((-))
   | ^^^^^^^^^^^^^^^^^^^^

[17 of 21] Compiling Protolude.Semiring ( src/Protolude/Semiring.hs, dist/build/Protolude/Semiring.o, dist/build/Protolude/Semiring.dyn_o )
[18 of 21] Compiling Protolude.Show   ( src/Protolude/Show.hs, dist/build/Protolude/Show.o, dist/build/Protolude/Show.dyn_o )
[19 of 21] Compiling Protolude.Debug  ( src/Protolude/Debug.hs, dist/build/Protolude/Debug.o, dist/build/Protolude/Debug.dyn_o )
[21 of 21] Compiling Protolude.Unsafe ( src/Protolude/Unsafe.hs, dist/build/Protolude/Unsafe.o, dist/build/Protolude/Unsafe.dyn_o )
src/Protolude/Unsafe.hs:32:14: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘head’
    (imported from Data.List, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Use pattern matching, 'Data.List.uncons' or 'Data.Maybe.listToMaybe' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
32 | unsafeHead = List.head
   |              ^^^^^^^^^

src/Protolude/Unsafe.hs:35:14: warning: [GHC-63394] [-Wx-partial]
    In the use of ‘tail’
    (imported from Data.List, but defined in GHC.Internal.List):
    "This is a partial function, it throws an error on empty lists. Replace it with 'drop' 1, or use pattern matching or 'GHC.Internal.Data.List.uncons' instead. Consider refactoring to use "Data.List.NonEmpty"."
   |
35 | unsafeTail = List.tail
   |              ^^^^^^^^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions