Skip to content

modules not found when installed via Nix #7

@YPares

Description

@YPares

Hi,
when trying to run the example, I get:

Error while interpreting
example = circle 1
/tmp/Diagram1804289383846930886.hs:4:8:
    Could not find module ‘Diagrams.Prelude’
    Use -v to see a list of the files searched for.
/tmp/Diagram1804289383846930886.hs:5:8:
    Could not find module ‘Diagrams.TwoD.Types’
    Use -v to see a list of the files searched for.
/tmp/Diagram1804289383846930886.hs:6:8:
    Could not find module ‘Diagrams.Core.Points’
    Use -v to see a list of the files searched for.
/tmp/Diagram1804289383846930886.hs:7:8:
    Could not find module ‘Diagrams.Backend.Cairo’
    Use -v to see a list of the files searched for.
/tmp/Diagram1804289383846930886.hs:8:8:
    Could not find module ‘Diagrams.Backend.Cairo.Internal’
    Use -v to see a list of the files searched for.
/tmp/Diagram1804289383846930886.hs:9:8:
    Could not find module ‘Graphics.SVGFonts’
    Use -v to see a list of the files searched for.

whereas when I run ghci manually, I can import Diagrams.Prelude without any problem.

(I installed GHC, pandoc and diagrams-pandoc through Nix, but as I said, ghci has no problem finding the required modules)

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