claymager/idris2-pkgs

Unable to use the `dom` dependency.

Closed this issue · 2 comments

srid commented

idris2-dom was added in #8. I added depends = dom in the .pkg file, but idris is unable to locate the JS module from that package:

idris2 -o main.js src/Main.idr --cg javascript
Error: Module JS not found

src.Main:3:1--3:10
 1 | module Main
 2 | 
 3 | import JS
     ^^^^^^^^^

Error: Undefined name unsafePerformIO. 

(Interactive):1:1--1:1
 1 | module Main

To reproduce, run nix develop -c make idrisid in this tree: srid/idris-web-playground@eb279f0

srid commented

Seems to be under the package dirs path, though:

image

srid commented

Uh, PEBKAC. Sort of. I should be building the .ipkg file:

image

This ^ is still odd. Transitive dependencies are not being found. Adding sop to my .ipkg file resolves it, but I shouldn't have to do it, ideally.