Agda-stdlib: Duplicate <-wellFounded in Induction.Nat

Created on 29 Jun 2020  Â·  7Comments  Â·  Source: agda/agda-stdlib

When I try to typecheck the file Induction.Nat I get the following error:

/Users/doisinkidney/Developer/agda-stdlib/src/Induction/Nat.agda:13,1-38
Multiple definitions of <-wellFounded. Previous definition at
/Users/doisinkidney/Developer/agda-stdlib/src/Data/Nat/Induction.agda:83,1-14
when scope checking the declaration
  open import Data.Fin.Induction public

It seems like this was introduced in this commit: #1172

bug deprecation regression

All 7 comments

Induction.Nat is deprecated. You should import Data.Nat.Induction or Data.Fin.Induction separately. The old Induction.Nat module imports both which is evidently causing the conflict but Induction.Nat will be removed in the future.

Got it! I was compiling it as part of a "generate everything" type thing, but unfortunately I can't use the generate everything scripts in this repo because I'm using github actions.

because I'm using github actions

Out of interest, what is it about Github Actions that stops you using the GenerateEverything script?

It's just that I don't have the dependencies for GenerateEverything.hs installed. Also github actions seems to have weird restrictions about bash scripts so I haven't been able to get the travis/index.sh script to work either.

Hmm it should still type check though. We need to hide the new <-wellFounded for Fin

Should the travis script not skip the deprecated files then? I think there are probably some other errors in deprecated files, this was just the first one I ran in to.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MatthewDaggitt picture MatthewDaggitt  Â·  4Comments

xekoukou picture xekoukou  Â·  8Comments

mechvel picture mechvel  Â·  4Comments

JacquesCarette picture JacquesCarette  Â·  7Comments

langston-barrett picture langston-barrett  Â·  7Comments