Idris2 icon indicating copy to clipboard operation
Idris2 copied to clipboard

Order of `-p` libraries are important.

Open andorp opened this issue 5 years ago • 1 comments

I experiment with idris2 custom code generation backend, and it seems that the order -p arguments are important for the compilation result.

euler% idris2 -p contrib -p network -p idris2 Main.idr -o stg-idris2
Exception: attempt to reference unbound identifier Lexer-Text-octLit at line 2848, char 1161 of /home/andorp/Sources/IdrisGHCCodeGen/src/build/exec/stg-idris2_app/stg-idris2.ss

euler% idris2 -p idris2 -p contrib -p network Main.idr -o stg-idris2

Expected Behavior

The order of libraries should not be important

Observed Behavior

The order of libraries are important at the moment.

andorp avatar Sep 19 '20 19:09 andorp

This looks related to #1086

gallais avatar Feb 22 '21 11:02 gallais