purescript-contrib / pulp

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

pulp init generates incompatible code #349

Closed monkeygroover closed 6 years ago

monkeygroover commented 6 years ago

Currently pulp init generates the following example Main:

module Main where

import Prelude
import Control.Monad.Eff (Eff)
import Control.Monad.Eff.Console (CONSOLE, log)

main :: forall e. Eff (console :: CONSOLE | e) Unit
main = do
  log "Hello sailor!"

however it is importing a much newer version of purescript-effect and purescript-console that have namespace changes.

Where is this example? I can update it to something like:

module Main where

import Prelude (Unit)
import Effect
import Effect.Console (log)

main :: Effect Unit
main =
  log "Hello sailor!"

which seems to work

monkeygroover commented 6 years ago

doh, didnt see #337