You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 5, 2022. It is now read-only.
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