Skip to content

Natural is not exported from clash-prelude-1.9.0's Clash.Prelude GHC 9.0.2 (and lower?)  #2707

Open
@lmbollen

Description

@lmbollen

Found on the clash-vexriscv repo:
https://github.com/clash-lang/clash-vexriscv/actions/runs/8615733120/job/23611920320
9.2.8 and 9.4.8 do pass.
9.0.2:

 [4 of 8] Compiling VexRiscv.Random  ( src/VexRiscv/Random.hs, /__w/clash-vexriscv/clash-vexriscv/dist-newstyle/build/x86_64-linux/ghc-9.0.2/clash-vexriscv-0.1/build/VexRiscv/Random.o, /__w/clash-vexriscv/clash-vexriscv/dist-newstyle/build/x86_64-linux/ghc-9.0.2/clash-vexriscv-0.1/build/VexRiscv/Random.dyn_o )

src/VexRiscv/Random.hs:42:16: error:
    Not in scope: type constructor or class ‘Natural’
   |
42 | genNatural :: (Natural, Natural) -> IO Natural
   |                ^^^^^^^

src/VexRiscv/Random.hs:42:25: error:
    Not in scope: type constructor or class ‘Natural’
   |
42 | genNatural :: (Natural, Natural) -> IO Natural
   |                         ^^^^^^^

src/VexRiscv/Random.hs:42:40: error:
    Not in scope: type constructor or class ‘Natural’
   |
42 | genNatural :: (Natural, Natural) -> IO Natural
   |                                        ^^^^^^^
Error: cabal: Failed to build clash-vexriscv-0.1.

Error: Process completed with exit code 1.

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