Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a DynFlags plugin. #56

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Add a DynFlags plugin.

340f62e
Select commit
Loading
Failed to load commit list.
Draft

Add a DynFlags plugin. #56

Add a DynFlags plugin.
340f62e
Select commit
Loading
Failed to load commit list.
Garnix CI / package ghc8107_categorifier-adjunctions-integration-test [aarch64-linux] failed Feb 9, 2024 in 1h 0m 22s

Run results

Build failed

Details

Last 100 lines of logs:

categorifier-plugin-test>     405 ┃   . HInsert1 (Proxy @"SequenceA") (TestCases (const []))
categorifier-plugin-test>     406 ┃   . HInsert1 (Proxy @"Traverse") (TestCases (const []))
categorifier-plugin-test>     407 ┃   . HInsert1 (Proxy @"UnsafeCoerce") (TestCases (const [([t|Double|], pure ([|genFloating|], [|show|]))]))
categorifier-plugin-test>     408 ┃   . HInsert1 (Proxy @"Sum") (TestCases (const [])) -- can only work with specialization
categorifier-plugin-test>     409 ┃   . HInsert1 (Proxy @"SumList") (TestCases (const []))
categorifier-plugin-test>     410 ┃   . HInsert1 (Proxy @"ToList") (TestCases (const [])) -- can only work with specialization
categorifier-plugin-test>     411 ┃   . HInsert1 (Proxy @"Even") (TestCases (const [([t|Int64|], pure ([|genIntegralBounded|], [|show|]))]))
categorifier-plugin-test>     412 ┃   . HInsert1 (Proxy @"Odd") (TestCases (const [([t|Int64|], pure ([|genIntegralBounded|], [|show|]))]))
categorifier-plugin-test>     413 ┃   $ HEmpty1
categorifier-plugin-test>         ┃   │ (0,(0,0))
categorifier-plugin-test>         ┃   ^^^^^^^^^
categorifier-plugin-test>         ┃   │ ━━━ Exception (UnconvertedCall) ━━━
categorifier-plugin-test>         ┃   │ error: Categorifier failed to eliminate a call to `Categorifier.Categorify.expression`.
categorifier-plugin-test>         ┃   │   | This should only be possible if the module mentioned above was compiled
categorifier-plugin-test>         ┃   │   | without the Categorifier plugin enabled. Ensure that you're configuring
categorifier-plugin-test>         ┃   │   | it properly for your build process. E.g., passing `-fplugin=Categorifier`
categorifier-plugin-test>         ┃   │   | to GHC directly.
categorifier-plugin-test>         ┃   │   |
categorifier-plugin-test>         ┃   │   | It's also possible that some other plugin that you've enabled has interfered
categorifier-plugin-test>         ┃   │   | with this one. If you've enabled other plugins, try permuting the order of
categorifier-plugin-test>         ┃   │   | the `-fplugin` flags. (GHC installs the plugins in the /reverse/ order that
categorifier-plugin-test>         ┃   │   | `-fplugin` flags are provided on the command line.)
categorifier-plugin-test>         ┃   │
categorifier-plugin-test>         ┃   │ CallStack (from HasCallStack):
categorifier-plugin-test>         ┃   │   expression, called at test/Base/Main.hs:45:1 in main:Main
categorifier-plugin-test>     This failure can be reproduced by running:
categorifier-plugin-test>     > recheckAt (Seed 17808582003537929442 1279897951366850837) "1:" plainArrowFstLet0
categorifier-plugin-test>   ✗ plainArrowSwap0 failed at test/Base/Main.hs:45:1
categorifier-plugin-test>     after 1 test.
categorifier-plugin-test>     shrink path: 1:
categorifier-plugin-test>         ┏━━ test/Base/Main.hs ━━━
categorifier-plugin-test>      45 ┃ mkTestTerms
categorifier-plugin-test>      46 ┃   defaultTestTerms
categorifier-plugin-test>      47 ┃   --               name   type      prefix       strategy
categorifier-plugin-test>      48 ┃   ( [ TestCategory ''Term [t|Term|] "term" CheckCompileOnly,
categorifier-plugin-test>      49 ┃       TestCategory ''Hask [t|Hask|] "hask" (ComputeFromInput [|runHask|])
categorifier-plugin-test>      50 ┃     ]
categorifier-plugin-test>      51 ┃       <> builtinTestCategories
categorifier-plugin-test>      52 ┃   )
categorifier-plugin-test>      53 ┃   -- core
categorifier-plugin-test>      54 ┃   . HInsert1 (Proxy @"LamId") (TestCases (const [([t|Word8|], pure ([|genIntegralBounded|], [|show|]))]))
categorifier-plugin-test>      55 ┃   . HInsert1 (Proxy @"ComposeLam") (TestCases (const [([t|Word8|], pure ([|genIntegralBounded|], [|show|]))]))
categorifier-plugin-test>      56 ┃   . HInsert1 (Proxy @"ConstLam") (TestCases (const [(([t|Int64|], [t|Word8|]), Nothing)]))
categorifier-plugin-test>      57 ┃   . HInsert1 (Proxy @"ReturnLam") (TestCases (const [([t|Word8|], pure ([|genIntegralBounded|], [|show|]))]))
categorifier-plugin-test>      58 ┃   . HInsert1 (Proxy @"BuildTuple") (TestCases (const [([t|Word8|], pure ([|genIntegralBounded|], [|show|]))]))
categorifier-plugin-test>      59 ┃   . HInsert1
categorifier-plugin-test>      60 ┃     (Proxy @"EliminateTupleFst")
categorifier-plugin-test>      61 ┃     ( TestCases
categorifier-plugin-test>      62 ┃         (const [([t|Word8|], pure ([|(,) <$> genIntegralBounded <*> genIntegralBounded|], [|show|]))])
categorifier-plugin-test>      63 ┃     )
categorifier-plugin-test>      64 ┃   . HInsert1
categorifier-plugin-test> Test suite base-hierarchy: FAIL
categorifier-plugin-test>      65 ┃     (Proxy @"EliminateTupleSnd")
categorifier-plugin-test> Test suite logged to:
categorifier-plugin-test>      66 ┃     ( TestCases
categorifier-plugin-test> dist/test/categorifier-plugin-test-0.1-base-hierarchy.log
categorifier-plugin-test>      67 ┃         (const [([t|Word8|], pure ([|(,) <$> genIntegralBounded <*> genIntegralBounded|], [|show|]))])
categorifier-plugin-test>      68 ┃     )
categorifier-plugin-test>      69 ┃   . HInsert1
categorifier-plugin-test> 0 of 3 test suites (0 of 3 test cases) passed.
categorifier-plugin-test>      70 ┃     (Proxy @"EliminateNestedTuples")
categorifier-plugin-test>      71 ┃     ( TestCases
categorifier-plugin-test>      72 ┃         ( const
categorifier-plugin-test>      73 ┃             [ ( [t|Word8|],
categorifier-plugin-test>      74 ┃                 pure
categorifier-plugin-test>      75 ┃                   ( [|(,) <$> genIntegralBounded <*> ((,) <$> genIntegralBounded <*> genIntegralBounded)|],
categorifier-plugin-test>      76 ┃                     [|show|]
categorifier-plugin-test>      77 ┃                   )
categorifier-plugin-test>      78 ┃               )
categorifier-plugin-test>      79 ┃             ]
categorifier-plugin-test>      80 ┃         )
categorifier-plugin-test>      81 ┃     )
categorifier-plugin-test>      82 ┃   . HInsert1 (Proxy @"LocalFixedPoint") (TestCases (const [])) -- no support for `curry` in Base
categorifier-plugin-test>      83 ┃   . HInsert1
categorifier-plugin-test>      84 ┃     (Proxy @"ApplyArg")
categorifier-plugin-test>      85 ┃     ( TestCases
categorifier-plugin-test>      86 ┃         ( const
categorifier-plugin-test>      87 ┃             [ ( [t|Word8|],
categorifier-plugin-test>      88 ┃                 pure ([|Gen.choice [const <$> genIntegralBounded, pure id]|], [|const "<function>"|])
categorifier-plugin-test>      89 ┃               )
categorifier-plugin-test>      90 ┃             ]
categorifier-plugin-test>      91 ┃         )
categorifier-plugin-test>      92 ┃     )
categorifier-plugin-test>      93 ┃   . HInsert1
categorifier-plugin-test>      94 ┃     (Proxy @"If")
error: build of '/nix/store/5kh0g5lz8hjhkm4zvlj729ihzpdp4jj1-categorifier-plugin-test-0.1.drv' on 'ssh-ng://nix-ssh@arm-server-1' failed: builder for '/nix/store/5kh0g5lz8hjhkm4zvlj729ihzpdp4jj1-categorifier-plugin-test-0.1.drv' failed with exit code 1;
       last 10 log lines:
       >      85 ┃     ( TestCases
       >      86 ┃         ( const
       >      87 ┃             [ ( [t|Word8|],
       >      88 ┃                 pure ([|Gen.choice [const <$> genIntegralBounded, pure id]|], [|const "<function>"|])
       >      89 ┃               )
       >      90 ┃             ]
       >      91 ┃         )
       >      92 ┃     )
       >      93 ┃   . HInsert1
       >      94 ┃     (Proxy @"If")
       For full logs, run 'nix log /nix/store/5kh0g5lz8hjhkm4zvlj729ihzpdp4jj1-categorifier-plugin-test-0.1.drv'.
error: builder for '/nix/store/5kh0g5lz8hjhkm4zvlj729ihzpdp4jj1-categorifier-plugin-test-0.1.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/xbslhayzbk67gywajdb6a8nbhljz129f-categorifier-adjunctions-integration-test-0.1.drv' failed to build