This repository was archived by the owner on Oct 5, 2022. It is now read-only.
This repository was archived by the owner on Oct 5, 2022. It is now read-only.
Could not load module ‘HaskellSay’ #1
Open
Description
Following the cabal getting stared guide, I created a project structure like this
In Atom I then get an error like this
/Users/tdiesler/git/plutus-pioneer-program/futurelearn/week02/src/starman.hs: 1, 8
Could not load module ‘HaskellSay’
It is a member of the hidden package ‘haskell-say-1.0.0.0’.
You can run ‘:set -package haskell-say’ to expose it.
(Note: this unloads all the modules in the current scope.)
The project cabal file contains this ...
executable starman
main-is: starman.hs
hs-source-dirs: src
-- Modules included in this executable, other than Main.
-- other-modules:
-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
build-depends: base ^>= 4.14,
haskell-say ^>= 1.0,
random ^>= 1.2
default-language: Haskell2010
The same happens with import System.Random
The project works with cabal repl
and cabal run :starman
Metadata
Metadata
Assignees
Labels
No labels