elm-lang / elm-reactor

Interactive development tool that makes it easy to develop and debug Elm programs.
BSD 3-Clause "New" or "Revised" License
428 stars 63 forks source link

Pure elm Task and Port runtime error. #137

Closed Fresheyeball closed 8 years ago

Fresheyeball commented 9 years ago

Ok, this reproduces easily:

module Main where

import Graphics.Element exposing (..)
import Signal exposing (..)
import Task exposing (..)
import Keyboard

type Input = Input

input : Mailbox Input
input =
  mailbox Input

createKey : Signal (Task x ())
createKey = let
  create : Task x ()
  create = Signal.send (.address input) Input
  in Signal.filterMap
    (\b -> if b then Just create else Nothing)
    create
    Keyboard.enter

port run : Signal (Task x ())
port run = createKey

main : Signal Element
main = show <~ input.signal
vilterp commented 9 years ago

Thanks for the code snippet, but can you also add the runtime error to the issue description? Thanks!

Fresheyeball commented 9 years ago

screen shot 2015-08-07 at 6 00 45 pm

vilterp commented 9 years ago

Great, thanks. Will take a look at this. On Fri, Aug 7, 2015 at 5:01 PM Isaac Shapira notifications@github.com wrote:

[image: screen shot 2015-08-07 at 6 00 45 pm] https://cloud.githubusercontent.com/assets/609279/9148039/4552026e-3d2e-11e5-85e8-9d1f594eb590.png

— Reply to this email directly or view it on GitHub https://github.com/elm-lang/elm-reactor/issues/137#issuecomment-128863758 .

aymanosman commented 9 years ago

I have also had this issue. And a couple of others with the time travelling debugger.

elm-bork