purescript-contrib / pulp

A build tool for PureScript projects
GNU Lesser General Public License v3.0
445 stars 86 forks source link

Module Control.Monad.Eff was not found. #348

Closed monkeygroover closed 6 years ago

monkeygroover commented 6 years ago

I did;

npm install -g purescript pulp bower

Installed to ~/.nvm/versions/node/v8.9.4/lib/node_modules/purescript/purs.bin

+ purescript@0.12.0
+ pulp@12.2.0
+ bower@1.8.4
updated 3 packages in 8.709s

then pulp init

and pulp run

but I just get:

* Building project in /Users/rich/source/purescript
Error 1 of 2:

  in module Main
  at src/Main.purs line 4, column 1 - line 4, column 31

    Module Control.Monad.Eff was not found.
    Make sure the source file exists, and that it has been provided as an input to the compiler.

  See https://github.com/purescript/documentation/blob/master/errors/ModuleNotFound.md for more information,
  or to contribute content related to this error.

Error 2 of 2:

  in module Main
  at src/Main.purs line 5, column 1 - line 5, column 48

    Module Control.Monad.Eff.Console was not found.
    Make sure the source file exists, and that it has been provided as an input to the compiler.

  See https://github.com/purescript/documentation/blob/master/errors/ModuleNotFound.md for more information,
  or to contribute content related to this error.

* ERROR: Subcommand terminated with exit code 1

any idea what I may have wrong here? cheers.

monkeygroover commented 6 years ago

ok, looks like the Example main generated by pulp init is no longer compatible with Namespace changes etc in Control.Monad.Eff.Console v4.0.0

I changed the main to just be:

module Main where

import Prelude
import Effect.Console (log)

main =
  log "Hello sailor!"

and it runs ok.

I'll close this and raise a new issue to get the example template updated.