Skip to content

Add a comment

7ae0cd7
Select commit
Loading
Failed to load commit list.
Closed

Disable ghc docs by default #2319

Add a comment
7ae0cd7
Select commit
Loading
Failed to load commit list.
zw3rk Hydra / x86_64-darwin.unstable.ghc91320241230.native.tests.th-dlls.build-profiled-ei cancelled Feb 16, 2025 in 36s

Build aborted

6 failed steps

Details

Failed Steps

Step 6

Derivation

/nix/store/kdb7a0lcn12jplnsr97qw9ksnahy39zr-th-dlls-lib-th-dlls-0.1.0.0.drv

Log

Not available.

Step 5

Derivation

/nix/store/kdb7a0lcn12jplnsr97qw9ksnahy39zr-th-dlls-lib-th-dlls-0.1.0.0.drv

Log

Not available.

Step 4

Derivation

/nix/store/kdb7a0lcn12jplnsr97qw9ksnahy39zr-th-dlls-lib-th-dlls-0.1.0.0.drv

Log

Not available.

Step 3

Derivation

/nix/store/kdb7a0lcn12jplnsr97qw9ksnahy39zr-th-dlls-lib-th-dlls-0.1.0.0.drv

Log

Not available.

Step 2

Derivation

/nix/store/kdb7a0lcn12jplnsr97qw9ksnahy39zr-th-dlls-lib-th-dlls-0.1.0.0.drv

Log

Not available.

Step 1

Derivation

/nix/store/a9dpsi13mj5bsyn1f5s1b67c7gs03041-c2hs-exe-c2hs-0.28.8.drv

Log

Running phase: unpackPhase
unpacking source archive /nix/store/3d5b6gkvybq70bhh799v45sfpgdxvhlb-c2hs-0.28.8.tar.gz
source root is c2hs-0.28.8
setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file c2hs-0.28.8/tests/test-system.hs
Running phase: patchPhase
'/private/tmp/nix-build-c2hs-exe-c2hs-0.28.8.drv-0/.attr-0h9ydb7s8pfhl5kfs3rmmwnmpi49yyiw7jgr5dpw9rmvv8sy0f2b' -> 'c2hs.cabal'
Running phase: configurePhase
Configure flags:
--prefix=/nix/store/bhjn22h6f3xkffzid6hi64igmbhbj8l2-c2hs-exe-c2hs-0.28.8 exe:c2hs --package-db=clear --package-db=/private/tmp/nix-build-c2hs-exe-c2hs-0.28.8.drv-0/tmp.VfApF2DXzC/lib/ghc-9.13.20241230/lib/package.conf.d --flags=base3 --flags=-regression --exact-configuration --dependency=dlist=dlist-1.0-FrB7zPxpT8X3yXJwUJK1A7 --dependency=language-c=language-c-0.10.0-5dSg8jKuxND3sS9VH10II8 --dependency=array=array-0.5.8.0-inplace --dependency=base=base-4.21.0.0-inplace --dependency=bytestring=bytestring-0.12.2.0-inplace --dependency=containers=containers-0.7-inplace --dependency=deepseq=deepseq-1.5.1.0-inplace --dependency=directory=directory-1.3.9.0-inplace --dependency=exceptions=exceptions-0.10.9-inplace --dependency=file-io=file-io-0.1.5-inplace --dependency=filepath=filepath-1.5.4.0-inplace --dependency=ghc-bignum=ghc-bignum-1.4-inplace --dependency=ghc-boot-th=ghc-boot-th-9.13-inplace --dependency=ghc-internal=ghc-internal-9.1300.0-inplace --dependency=ghc-prim=ghc-prim-0.13.0-inplace --dependency=integer-gmp=integer-gmp-1.1-inplace --dependency=mtl=mtl-2.3.1-inplace --dependency=os-string=os-string-2.0.7-inplace --dependency=pretty=pretty-1.1.3.6-inplace --dependency=process=process-1.6.25.0-inplace --dependency=rts=rts-1.0.3 --dependency=stm=stm-2.5.3.1-inplace --dependency=template-haskell=template-haskell-2.23.0.0-inplace --dependency=time=time-1.14-inplace --dependency=transformers=transformers-0.6.1.2-inplace --dependency=unix=unix-2.8.6.0-inplace --with-ghc=ghc --with-ghc-pkg=ghc-pkg --with-hsc2hs=hsc2hs --with-gcc=cc --with-ar=ar --with-strip=strip --with-ld=ld --disable-executable-stripping --disable-library-stripping --disable-library-profiling --disable-profiling --enable-static --enable-shared --disable-executable-dynamic --disable-coverage --enable-library-for-ghci --datadir=/nix/store/wazphbmkmdp0yxdhqcbn72rclgfhkaqc-c2hs-exe-c2hs-0.28.8-data/share/ghc-9.13.20241230 
Configuring executable 'c2hs' for c2hs-0.28.8..
Running phase: buildPhase
Preprocessing executable 'c2hs' for c2hs-0.28.8..
Building executable 'c2hs' for c2hs-0.28.8..
[ 1 of 26] Compiling C2HS.C.Info      ( src/C2HS/C/Info.hs, dist/build/c2hs/c2hs-tmp/C2HS/C/Info.o )
[ 2 of 26] Compiling C2HS.Config      ( src/C2HS/Config.hs, dist/build/c2hs/c2hs-tmp/C2HS/Config.o )
[ 3 of 26] Compiling C2HS.Switches    ( src/C2HS/Switches.hs, dist/build/c2hs/c2hs-tmp/C2HS/Switches.o )
[ 4 of 26] Compiling Control.StateTrans ( src/Control/StateTrans.hs, dist/build/c2hs/c2hs-tmp/Control/StateTrans.o )
src/Control/StateTrans.hs:77:1: warning: [8;;https://errors.haskell.org/messages/GHC-66111GHC-661118;;] [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
   |
77 | import Control.Applicative (Applicative(..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/StateTrans.hs:80:24: warning: [8;;https://errors.haskell.org/messages/GHC-61689GHC-616898;;] [-Wdodgy-imports]
    Module ‘Prelude’ does not export ‘catch’.
   |
80 | import Prelude hiding (catch)
   |                        ^^^^^

src/Control/StateTrans.hs:109:3: warning: [8;;https://errors.haskell.org/messages/GHC-22705GHC-227058;;] [-Wnoncanonical-monad-instances]
    Noncanonical ‘pure = return’ definition detected
    in the instance declaration for ‘Applicative (STB bs gs)’.
    Suggested fix:
      Move definition from ‘return’ to ‘pure’
      See also: https://gitlab.haskell.org/ghc/ghc/-/wikis/proposal/monad-of-no-return
    |
109 |   pure  = return
    |   ^^^^^^^^^^^^^^

src/Control/StateTrans.hs:113:3: warning: [8;;https://errors.haskell.org/messages/GHC-22705GHC-227058;;] [-Wnoncanonical-monad-instances]
    Noncanonical ‘return’ definition detected
    in the instance declaration for ‘Monad (STB bs gs)’.
    ‘return’ will eventually be removed in favour of ‘pure’
    Suggested fix:
      Either remove definition for ‘return’ (recommended) or define as ‘return = pure’
      See also: https://gitlab.haskell.org/ghc/ghc/-/wikis/proposal/monad-of-no-return
    |
113 |   return = yield
    |   ^^^^^^^^^^^^^^

[ 5 of 26] Compiling Data.Errors      ( src/Data/Errors.hs, dist/build/c2hs/c2hs-tmp/Data/Errors.o )
[ 6 of 26] Compiling Data.Attributes  ( src/Data/Attributes.hs, dist/build/c2hs/c2hs-tmp/Data/Attributes.o )
[ 7 of 26] Compiling Control.StateBase ( src/Control/StateBase.hs, dist/build/c2hs/c2hs-tmp/Control/StateBase.o )
src/Control/StateBase.hs:59:1: warning: [8;;https://errors.haskell.org/messages/GHC-66111GHC-661118;;] [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
   |
59 | import Control.Applicative (Applicative(..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/StateBase.hs:61:1: warning: [8;;https://errors.haskell.org/messages/GHC-66111GHC-661118;;] [-Wunused-imports]
    The import of ‘Control.Monad.Fail’ is redundant
      except perhaps to import instances from ‘Control.Monad.Fail’
    To import instances alone, use: import Control.Monad.Fail()
   |
61 | import Control.Monad.Fail (MonadFail (..))
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/Control/StateBase.hs:94:3: warning: [8;;https://errors.haskell.org/messages/GHC-22705GHC-227058;;] [-Wnoncanonical-monad-instances]
    Noncanonical ‘pure = return’ definition detected
    in the instance declaration for ‘Applicative (PreCST e s)’.
    Suggested fix:
      Move definition from ‘return’ to ‘pure’
      See also: https://gitlab.haskell.org/ghc/ghc/-/wikis/proposal/monad-of-no-return
   |
94 |   pure  = return
   |   ^^^^^^^^^^^^^^

src/Control/StateBase.hs:98:3: warning: [8;;https://errors.haskell.org/messages/GHC-22705GHC-227058;;] [-Wnoncanonical-monad-instances]
    Noncanonical ‘return’ definition detected
    in the instance declaration for ‘Monad (PreCST e s)’.
    ‘return’ will eventually be removed in favour of ‘pure’
    Suggested fix:
      Either remove definition for ‘return’ (recommended) or define as ‘return = pure’
      See also: https://gitlab.haskell.org/ghc/ghc/-/wikis/proposal/monad-of-no-return
   |
98 |   return = yield
   |   ^^^^^^^^^^^^^^

[ 8 of 26] Compiling Data.NameSpaces  ( src/Data/NameSpaces.hs, dist/build/c2hs/c2hs-tmp/Data/NameSpaces.o )
[ 9 of 26] Compiling C2HS.C.Attrs     ( src/C2HS/C/Attrs.hs, dist/build/c2hs/c2hs-tmp/C2HS/C/Attrs.o )
[10 of 26] Compiling C2HS.C.Builtin   ( src/C2HS/C/Builtin.hs, dist/build/c2hs/c2hs-tmp/C2HS/C/Builtin.o )
[11 of 26] Compiling Paths_c2hs       ( dist/build/c2hs/autogen/Paths_c2hs.hs, dist/build/c2hs/c2hs-tmp/Paths_c2hs.o )
[12 of 26] Compiling C2HS.Version     ( src/C2HS/Version.hs, dist/build/c2hs/c2hs-tmp/C2HS/Version.o )
[13 of 26] Compiling System.CIO       ( src/System/CIO.hs, dist/build/c2hs/c2hs-tmp/System/CIO.o )
[14 of 26] Compiling Control.State    ( src/Control/State.hs, dist/build/c2hs/c2hs-tmp/Control/State.o )
[15 of 26] Compiling C2HS.State       ( src/C2HS/State.hs, dist/build/c2hs/c2hs-tmp/C2HS/State.o )
[16 of 26] Compiling C2HS.C.Trav      ( src/C2HS/C/Trav.hs, dist/build/c2hs/c2hs-tmp/C2HS/C/Trav.o )
src/C2HS/C/Trav.hs:471:7: warning: [8;;https://errors.haskell.org/messages/GHC-62161GHC-621618;;] [-Wincomplete-uni-patterns]
    Pattern match(es) are non-exhaustive
    In a pattern binding:
        Patterns of type ‘CDeclaration NodeInfo’ not matched:
            CStaticAssert _ _ _
            CDecl _ [] _
            CDecl _ ((Nothing, _, _):_) _
            CDecl _ (((Just _), _, _):_:_) _
    |
471 |   let CDecl _ [(Just declr, _, _)] _ = ide `simplifyDecl` decl
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/C2HS/C/Trav.hs:606:8: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, 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"."
    |
606 |   case head [ts | CTypeSpec ts <- specs] of
    |        ^^^^

src/C2HS/C/Trav.hs:612:8: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, 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"."
    |
612 |   case head [ts | CTypeSpec ts <- specs] of
    |        ^^^^

src/C2HS/C/Trav.hs:761:18: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, 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"."
    |
761 |             case head [ts | CTypeSpec ts <- specs] of
    |                  ^^^^

[17 of 26] Compiling C2HS.C.Names     ( src/C2HS/C/Names.hs, dist/build/c2hs/c2hs-tmp/C2HS/C/Names.o )
[18 of 26] Compiling C2HS.C           ( src/C2HS/C.hs, dist/build/c2hs/c2hs-tmp/C2HS/C.o )
[19 of 26] Compiling Text.Lexers      ( src/Text/Lexers.hs, dist/build/c2hs/c2hs-tmp/Text/Lexers.o )
src/Text/Lexers.hs:461:57: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, 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"."
    |
461 |                               "The character " ++ show (head cs)
    |                                                         ^^^^

src/Text/Lexers.hs:464:40: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘tail’
    (imported from Prelude, 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"."
    |
464 |                  (Just (Left err), l, (tail cs, incPos pos 1, s))
    |                                        ^^^^

[20 of 26] Compiling C2HS.CHS.Lexer   ( src/C2HS/CHS/Lexer.hs, dist/build/c2hs/c2hs-tmp/C2HS/CHS/Lexer.o )
src/C2HS/CHS/Lexer.hs:534:33: warning: [8;;https://errors.haskell.org/messages/GHC-62161GHC-621618;;] [-Wincomplete-uni-patterns]
    Pattern match(es) are non-exhaustive
    In a pattern binding: Patterns of type ‘[Name]’ not matched: []
    |
534 |     action' str pos state = let name:ns = namesup state
    |                                 ^^^^^^^^^^^^^^^^^^^^^^^

src/C2HS/CHS/Lexer.hs:700:14: warning: [8;;https://errors.haskell.org/messages/GHC-62161GHC-621618;;] [-Wincomplete-uni-patterns]
    Pattern match(es) are non-exhaustive
    In a lambda abstraction:
        Patterns of type ‘String’, ‘Position’, ‘CHSLexerState’ not matched:
            [] _ _
    |
700 |              \t@(ld:spdir) pos s ->      -- strip off the "\n" or "\0"
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

src/C2HS/CHS/Lexer.hs:719:18: warning: [8;;https://errors.haskell.org/messages/GHC-17335GHC-173358;;] [-Wincomplete-record-selectors]
    Selecting the record field ‘posOffset’ may fail for the following constructors:
      Language.C.Data.Position.NoPosition, Language.C.Data.Position.BuiltinPosition, Language.C.Data.Position.InternalPosition
    |
719 |   then position (posOffset pos) fname' row' 1 (posParent pos)
    |                  ^^^^^^^^^

src/C2HS/CHS/Lexer.hs:728:38: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, 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"."
    |
728 |     fname'          | null str''' || head str''' /= '"' = fname
    |                                      ^^^^

src/C2HS/CHS/Lexer.hs:927:27: warning: [8;;https://errors.haskell.org/messages/GHC-62161GHC-621618;;] [-Wincomplete-uni-patterns]
    Pattern match(es) are non-exhaustive
    In a lambda abstraction:
        Patterns of type ‘[Char]’, ‘Position’ not matched: [] _
    |
927 |               `lexaction` \(_:ds) pos -> Just (con pos (read ds))
    |                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/C2HS/CHS/Lexer.hs:933:65: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘tail’
    (imported from Prelude, 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"."
    |
933 |           `lexaction` \cs pos -> Just (CHSTokString pos (init . tail $ cs))
    |                                                                 ^^^^

src/C2HS/CHS/Lexer.hs:939:65: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘tail’
    (imported from Prelude, 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"."
    |
939 |           `lexaction` \cs pos -> Just (CHSTokHSVerb pos (init . tail $ cs))
    |                                                                 ^^^^

src/C2HS/CHS/Lexer.hs:945:65: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘tail’
    (imported from Prelude, 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"."
    |
945 |           `lexaction` \cs pos -> Just (CHSTokHSQuot pos (init . tail $ cs))
    |                                                                 ^^^^

[21 of 26] Compiling C2HS.CHS         ( src/C2HS/CHS.hs, dist/build/c2hs/c2hs-tmp/C2HS/CHS.o )
src/C2HS/CHS.hs:529:62: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, 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"."
    |
529 |                            (state == Wait && not (null s) && head s == '\n')
    |                                                              ^^^^

src/C2HS/CHS.hs:534:45: warning: [8;;https://errors.haskell.org/messages/GHC-17335GHC-173358;;] [-Wincomplete-record-selectors]
    Selecting the record field ‘posRow’ may fail for the following constructors:
      Language.C.Data.Position.NoPosition, Language.C.Data.Position.BuiltinPosition, Language.C.Data.Position.InternalPosition
    |
534 |            let (fname,line) = (posFile pos, posRow pos)
    |                                             ^^^^^^

src/C2HS/CHS.hs:841:24: warning: [8;;https://errors.haskell.org/messages/GHC-62161GHC-621618;;] [-Wincomplete-uni-patterns]
    Pattern match(es) are non-exhaustive
    In a pattern binding: Patterns of type ‘[String]’ not matched: []
    |
841 |                    let versline:chi = ls
    |                        ^^^^^^^^^^^^^^^^^

src/C2HS/CHS.hs:851:24: warning: [8;;https://errors.haskell.org/messages/GHC-62161GHC-621618;;] [-Wincomplete-uni-patterns]
    Pattern match(es) are non-exhaustive
    In a pattern binding:
        Patterns of type ‘Maybe (String, String)’ not matched: Nothing
    |
851 |                    let Just (myMajor, myMinor) = majorMinor version
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/C2HS/CHS.hs:891:57: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘tail’
    (imported from Prelude, 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"."
    |
891 |                        (minor, _   ) = break (== '.') . tail $ rest
    |                                                         ^^^^

src/C2HS/CHS.hs:1169:48: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, 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"."
     |
1169 |     when (isParmWrapped parm) $ errorOutWrap $ head toks'9
     |                                                ^^^^

[22 of 26] Compiling C2HS.Gen.Monad   ( src/C2HS/Gen/Monad.hs, dist/build/c2hs/c2hs-tmp/C2HS/Gen/Monad.o )
src/C2HS/Gen/Monad.hs:281:30: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘tail’
    (imported from Prelude, 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"."
    |
281 |                            . tail
    |                              ^^^^

src/C2HS/Gen/Monad.hs:286:50: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘tail’
    (imported from Prelude, 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"."
    |
286 |       else (internalIdent ideChars, (chopIdent . tail) rest)
    |                                                  ^^^^

[23 of 26] Compiling C2HS.Gen.Wrapper ( src/C2HS/Gen/Wrapper.hs, dist/build/c2hs/c2hs-tmp/C2HS/Gen/Wrapper.o )
src/C2HS/Gen/Wrapper.hs:117:7: warning: [8;;https://errors.haskell.org/messages/GHC-62161GHC-621618;;] [-Wincomplete-uni-patterns]
    Pattern match(es) are non-exhaustive
    In a pattern binding:
        Patterns of type ‘CDeclaration
                            Language.C.Data.Node.NodeInfo’ not matched:
            CStaticAssert _ _ _
            CDecl _ [] _
            CDecl _ ((Nothing, _, _):_) _
            CDecl _ (((Just _), (Just _), _):_) _
            ...
    |
117 |   let (CDecl specs [(Just decl, Nothing, Nothing)] n) = fixEmpty din idx
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[24 of 26] Compiling C2HS.Gen.Header  ( src/C2HS/Gen/Header.hs, dist/build/c2hs/c2hs-tmp/C2HS/Gen/Header.o )
src/C2HS/Gen/Header.hs:101:15: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘tail’
    (imported from Prelude, 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"."
    |
101 |   \supply -> (tail supply, "C2HS_COND_SENTRY_" ++ (show.nameId) (head supply))
    |               ^^^^

src/C2HS/Gen/Header.hs:101:66: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, 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"."
    |
101 |   \supply -> (tail supply, "C2HS_COND_SENTRY_" ++ (show.nameId) (head supply))
    |                                                                  ^^^^

src/C2HS/Gen/Header.hs:181:30: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘tail’
    (imported from Prelude, 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"."
    |
181 |                  \supply -> (tail supply, "__c2hs_enum__" ++
    |                              ^^^^

src/C2HS/Gen/Header.hs:182:58: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, 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"."
    |
182 |                                           show (nameId $ head supply))
    |                                                          ^^^^

src/C2HS/Gen/Header.hs:184:30: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘tail’
    (imported from Prelude, 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"."
    |
184 |                  \supply -> (tail supply, "__c2hs_enr__" ++
    |                              ^^^^

src/C2HS/Gen/Header.hs:185:58: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, 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"."
    |
185 |                                           show (nameId $ head supply))
    |                                                          ^^^^

src/C2HS/Gen/Header.hs:211:17: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘tail’
    (imported from Prelude, 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"."
    |
211 |     \supply -> (tail supply, "__c2hs__const__" ++ show (nameId $ head supply))
    |                 ^^^^

src/C2HS/Gen/Header.hs:211:66: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, 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"."
    |
211 |     \supply -> (tail supply, "__c2hs__const__" ++ show (nameId $ head supply))
    |                                                                  ^^^^

[25 of 26] Compiling C2HS.Gen.Bind    ( src/C2HS/Gen/Bind.hs, dist/build/c2hs/c2hs-tmp/C2HS/Gen/Bind.o )
src/C2HS/Gen/Bind.hs:126:59: warning: [8;;https://errors.haskell.org/messages/GHC-38856GHC-388568;;] [-Wunused-imports]
    The import of ‘foldl'’ from module ‘Data.List’ is redundant
    |
126 |                       intercalate, isPrefixOf, isInfixOf, foldl')
    |                                                           ^^^^^^

src/C2HS/Gen/Bind.hs:146:1: warning: [8;;https://errors.haskell.org/messages/GHC-66111GHC-661118;;] [-Wunused-imports]
    The import of ‘C2HS.Switches’ is redundant
      except perhaps to import instances from ‘C2HS.Switches’
    To import instances alone, use: import C2HS.Switches()
    |
146 | import C2HS.Switches   (platformSB)
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/C2HS/Gen/Bind.hs:530:65: warning: [8;;https://errors.haskell.org/messages/GHC-17335GHC-173358;;] [-Wincomplete-record-selectors]
    Selecting the record field ‘posRow’ may fail for the following constructors:
      Language.C.Data.Position.NoPosition, Language.C.Data.Position.BuiltinPosition, Language.C.Data.Position.InternalPosition, Language.C.Data.Position.NoPosition, ...
    |
530 |                           where mln' | isSourcePos pos = Just $ posRow pos
    |                                                                 ^^^^^^

src/C2HS/Gen/Bind.hs:939:9: warning: [8;;https://errors.haskell.org/messages/GHC-62161GHC-621618;;] [-Wincomplete-uni-patterns]
    Pattern match(es) are non-exhaustive
    In a pattern binding:
        Patterns of type ‘Maybe (CInitializer NodeInfo)’ not matched:
            Nothing
    |
939 |     let (Just ini) = initDeclr cdecl
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/C2HS/Gen/Bind.hs:998:25: warning: [8;;https://errors.haskell.org/messages/GHC-62161GHC-621618;;] [-Wincomplete-uni-patterns]
    Pattern match(es) are non-exhaustive
    In a lambda abstraction:
        Patterns of type ‘(Maybe String, Integer)’ not matched:
            (Nothing, _)
    |
998 |     let enumVals = map (\(Just i, e) -> (i, e)) $ filter (isJust . fst) $
    |                         ^^^^^^^^^^^^^^^^^^^^^^

src/C2HS/Gen/Bind.hs:1086:28: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘tail’
    (imported from Prelude, 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"."
     |
1086 |                           (tail idents)
     |                            ^^^^

src/C2HS/Gen/Bind.hs:1097:28: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘tail’
    (imported from Prelude, 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"."
     |
1097 |                           (tail aliases)
     |                            ^^^^

src/C2HS/Gen/Bind.hs:1099:39: warning: [8;;https://errors.haskell.org/messages/GHC-63394GHC-633948;;] [-Wx-partial]
    In the use of ‘head’
    (imported from Prelude, 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"."
     |
1099 |                   firsts = concatFor (head aliases) $ \i ->
     |                                       ^^^^

src/C2HS/Gen/Bind.hs:1294:43: warning: [8;;https://errors.haskell.org/messages/GHC-17335GHC-173358;;] [-Wincomplete-record-selectors]
    Selecting the record field ‘posColumn’ may fail for the following constructors:
      Language.C.Data.Position.NoPosition, Language.C.Data.Position.BuiltinPosition, Language.C.Data.Position.InternalPosition
     |
1294 |       pad code = let padding = replicate (posColumn hkpos - 1) ' '
     |                                           ^^^^^^^^^

src/C2HS/Gen/Bind.hs:1295:22: warning: [8;;https://errors.haskell.org/messages/GHC-62161GHC-621618;;] [-Wincomplete-uni-patterns]
    Pattern match(es) are non-exhaustive
    In a pattern binding: Patterns of type ‘[String]’ not matched: []
     |
1295 |                      (l:ls) = lines code
     |                      ^^^^^^^^^^^^^^^^^^^

src/C2HS/Gen/Bind.hs:2183:29: warning: [8;;https://errors.haskell.org/messages/GHC-62161GHC-621618;;] [-Wincomplete-uni-patterns]
    Pattern match(es) are non-exhaustive
    In a pattern binding:
        Patterns of type ‘CDeclaration NodeInfo’ not matched:
            CStaticAssert _ _ _
            CStaticAssert _ _ _
            CDecl _ [] _
            CDecl _ [] _
            ...
     |
2183 |                         let CDecl specs [(declr, init', _)] at =
     |                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...

src/C2HS/Gen/Bind.hs:2516:11: warning: [8;;https://errors.haskell.org/messages/GHC-62161GHC-621618;;] [-Wincomplete-uni-patterns]
    Pattern match(es) are non-exhaustive
    In a pattern binding:
        Patterns of type ‘CDeclaration NodeInfo’ not matched:
            CStaticAssert _ _ _
            CStaticAssert _ _ _
            CStaticAssert _ _ _
            CStaticAssert _ _ _
            ...
     |
2516 |       let CDecl specs [(declr, init', _)] at = ide `simplifyDecl` cdecl'
     |           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[26 of 26] Compiling Main             ( src/Main.hs, dist/build/c2hs/c2hs-tmp/Main.o )
src/Main.hs:576:9: warning: [8;;https://errors.haskell.org/messages/GHC-62161GHC-621618;;] [-Wincomplete-uni-patterns]
    Pattern match(es) are non-exhaustive
    In a pattern binding:
        Patterns of type ‘[String]’ not matched:
            []
            [_]
            [_, _]
            (_:_:_:_:_)
    |
576 |         [versMajor, versMinor, versRev] = map show $ DV.versionBranch versnum
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

[27 of 27] Linking dist/build/c2hs/c2hs
Running phase: installPhase
Installing executable c2hs in /nix/store/bhjn22h6f3xkffzid6hi64igmbhbj8l2-c2hs-exe-c2hs-0.28.8/bin
Warning: The directory
/nix/store/bhjn22h6f3xkffzid6hi64igmbhbj8l2-c2hs-exe-c2hs-0.28.8/bin is not in
the system search path.
Running phase: fixupPhase
checking for references to /private/tmp/nix-build-c2hs-exe-c2hs-0.28.8.drv-0/ in /nix/store/bhjn22h6f3xkffzid6hi64igmbhbj8l2-c2hs-exe-c2hs-0.28.8...
patching script interpreter paths in /nix/store/bhjn22h6f3xkffzid6hi64igmbhbj8l2-c2hs-exe-c2hs-0.28.8
checking for references to /private/tmp/nix-build-c2hs-exe-c2hs-0.28.8.drv-0/ in /nix/store/wazphbmkmdp0yxdhqcbn72rclgfhkaqc-c2hs-exe-c2hs-0.28.8-data...
patching script interpreter paths in /nix/store/wazphbmkmdp0yxdhqcbn72rclgfhkaqc-c2hs-exe-c2hs-0.28.8-data
Running phase: installCheckPhase
no Makefile or custom installCheckPhase, doing nothing