elm-lang / elm-repl

A REPL for Elm
BSD 3-Clause "New" or "Revised" License
170 stars 34 forks source link

TypeError: Cannot read property 'programStart' of undefined #92

Open z5h opened 8 years ago

z5h commented 8 years ago

In the REPL:

> import Time
> import Signal
> (Signal.constant 1) |> Time.timestamp
TypeError: Cannot read property 'programStart' of undefined
amedeedaboville commented 8 years ago

yeah I got this too when importing a module that used both Time and Signal. I'm a complete beginner in elm though so I have no idea what it means and I'll just work around it :/

z5h commented 8 years ago

@amedeedaboville This is not a problem with the code input into the REPL. This is a problem with the REPL itself.

The REPL, if I understand correctly, does not have full support for Signals. Still, I'd expect to be able to be able to view my construction's type (for example) in the REPL without necessarily using it.

magthe commented 8 years ago

@z5h I agree, though an acceptable bare minimum might be to be able to view the types of other stuff in the module:

module Test where

import Time

foo = "bar"

mysig = Time.every Time.second

Due to mysig I can't even see the type of foo in elm-repl.

jorgebg commented 8 years ago

It is happening to me as well

co-dh commented 8 years ago

+1

simonewebdesign commented 8 years ago

Same issue.

> import Time
> Time.fps 60
TypeError: Cannot read property 'programStart' of undefined