Question:
Sorry if this is obvious… I’ve been using Replit for a while, but this is the first time I need to install a Nix package.
I’m trying to get JuicyPixel work in Replit.
content of replit.nix:
{ pkgs }: {
deps = [
pkgs.haskellPackages.ghc
pkgs.haskell-language-server
pkgs.haskellPackages.JuicyPixels
pkgs.cowsay
];
}
At system dependencies I see Juicypixels as installed.
My Main.hs is so far an empty file with an import:
import Codec.Picture
When I hit “run”, or load Main.hs in ghci, or just try to import Codec.Picture in ghci,
I get the error
Main.hs:1:1: error:
Could not find module ‘Codec.Picture’
Locations searched:
Codec/Picture.hs
Codec/Picture.lhs
Codec/Picture.hsig
Codec/Picture.lhsig
Am I missing a step? Should I add a path somewhere?
Codec.Picture is part of the JuicyPixels package. In my computer, after installing JuicyPixels, I was immediately able to import Codec.Picture, and any other module of JP.
Thanks in advance.
Repl link/Link to where the bug appears:
https://replit.com/@mekispeter/pngproba
Screenshots, links, or other helpful context:
https://replit.com/@mekispeter/pngproba#screenshots/Screenshot1.png