<div dir="ltr">I've found a solution. I'm sure your answer helps someone with a different problem.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 27, 2018 at 7:47 AM, Sridhar Ratnakumar <span dir="ltr"><<a href="mailto:pervasiveproximity@gmail.com" target="_blank">pervasiveproximity@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr"><span style="font-size:small;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">This doesn't directly answer your question, however in the case that all you want is to get started with a simple Reflex-DOM app, I'd suggest starting with obelisk:</span><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">-<span> </span><a href="https://github.com/obsidiansystems/obelisk" style="color:rgb(17,85,204)" target="_blank">https://github.com/<wbr>obsidiansystems/obelisk</a></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">- <a href="https://youtu.be/riJuXDIUMA0?t=30m15s" style="color:rgb(17,85,204)" target="_blank">https://youtu.be/<wbr>riJuXDIUMA0?t=30m15s</a></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">Then you can just run `ob repl` to get into the repl.</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">cheers,</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial">-srid</div><div style="font-size:small;text-decoration-style:initial;text-decoration-color:initial"><a href="https://www.srid.ca/" style="color:rgb(17,85,204)" target="_blank">https://www.srid.ca/</a></div><br></div><br></span><div class="gmail_quote"><span class=""><div dir="ltr">On Tue, 24 Jul 2018 at 14:04, Michael Litchard <<a href="mailto:litchard.michael@gmail.com" target="_blank">litchard.michael@gmail.com</a>> wrote:<br></div></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><p style="box-sizing:border-box;margin:0px 0px 0.357143em;padding:0px;font-size:14px;line-height:1.42857em;color:rgb(77,87,99);font-family:verdana,arial,helvetica,sans-serif;text-decoration-style:initial;text-decoration-color:initial">I've created a minimal example to show you what I've tried. Below is also a truncated error log. Could someone help me figure out how to get ghci working with this example?</p><p style="box-sizing:border-box;margin:0.357143em 0px;padding:0px;font-size:14px;line-height:1.42857em;color:rgb(77,87,99);font-family:verdana,arial,helvetica,sans-serif;text-decoration-style:initial;text-decoration-color:initial"><a href="https://github.com/mlitchard/reflex-todo" style="box-sizing:border-box;text-decoration:none;color:rgb(125,93,138);margin:0px" target="_blank">https://github.com/mlitchard/<wbr>reflex-todo</a></p><p style="box-sizing:border-box;margin:0.357143em 0px;padding:0px;font-size:14px;line-height:1.42857em;color:rgb(77,87,99);font-family:verdana,arial,helvetica,sans-serif;text-decoration-style:initial;text-decoration-color:initial">stack repl --stack-yaml=stack-ghc.yaml</p><p style="box-sizing:border-box;margin:0.357143em 0px;padding:0px;font-size:14px;line-height:1.42857em;color:rgb(77,87,99);font-family:verdana,arial,helvetica,sans-serif;text-decoration-style:initial;text-decoration-color:initial">Truncated error log</p><br><div><span style="color:rgb(77,87,99);font-family:verdana,arial,helvetica,sans-serif;font-size:14px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Error: -- While building custom Setup.hs for package jsaddle-dom-0.9.2.0 using: /home/mlitchard/.stack/setup-<wbr>exe-cache/x86_64-linux/Cabal-<wbr>simple_mPHDZzAJ_1.24.2.0_ghc-<wbr>8.0.2 --builddir=.stack-work/dist/<wbr>x86_64-linux/Cabal-1.24.2.0 build lib:jsaddle-dom --ghc-options " -ddump-hi -ddump-to-file" Process exited with code: ExitFailure 1 Logs have been written to: /home/mlitchard/projects/git/<wbr>reflex-todo/.stack-work/logs/<wbr>jsaddle-dom-0.9.2.0.log</span><br></div><div><span style="color:rgb(77,87,99);font-family:verdana,arial,helvetica,sans-serif;font-size:14px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><br></span></div><div><span style="color:rgb(77,87,99);font-family:verdana,arial,helvetica,sans-serif;font-size:14px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline"><span style="font-family:monospace,monospace;white-space:pre-wrap;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Preprocessing library jsaddle-dom-0.9.2.0...
[587 of 599] Compiling JSDOM.Custom.XMLHttpRequest ( src/JSDOM/Custom/<wbr>XMLHttpRequest.hs, .stack-work/dist/x86_64-linux/<wbr>Cabal-1.24.2.0/build/JSDOM/<wbr>Custom/XMLHttpRequest.o )

/home/mlitchard/projects/git/<wbr>reflex-todo/.stack-work/<wbr>downloaded/Vheiln5kqwE0/src/<wbr>JSDOM/Custom/XMLHttpRequest.<wbr>hs:39:46: error:
    • Could not deduce (Control.Monad.Catch.<wbr>MonadThrow
                          Language.Javascript.JSaddle.<wbr>Types.JSM)
        arising from a use of ‘throwM’
      from the context: MonadDOM m
        bound by the type signature for:
                   throwXHRError :: MonadDOM m => Maybe XHRError -> m ()
        at src/JSDOM/Custom/<wbr>XMLHttpRequest.hs:38:1-53
    • In the second argument of ‘(.)’, namely ‘throwM’
      In the second argument of ‘maybe’, namely ‘(liftDOM . throwM)’
      In the expression: maybe (return ()) (liftDOM . throwM)

/home/mlitchard/projects/git/<wbr>reflex-todo/.stack-work/<wbr>downloaded/Vheiln5kqwE0/src/<wbr>JSDOM/Custom/XMLHttpRequest.<wbr>hs:42:20: error:
    • No instance for (Control.Monad.Catch.MonadMask
                         Language.Javascript.JSaddle.<wbr>Types.JSM)
        arising from a use of ‘bracket’
    • In the first argument of ‘(.)’, namely ‘bracket aquire id’
      In the expression: bracket aquire id . const
      In an equation for ‘withEvent’:
          withEvent aquire = bracket aquire id . const

/home/mlitchard/projects/git/<wbr>reflex-todo/.stack-work/<wbr>downloaded/Vheiln5kqwE0/src/<wbr>JSDOM/Custom/XMLHttpRequest.<wbr>hs:45:31: error:
    • Could not deduce (Control.Monad.Catch.<wbr>MonadCatch
                          Language.Javascript.JSaddle.<wbr>Types.JSM)
        arising from an operator section
      from the context: MonadDOM m
        bound by the type signature for:
                   send' :: MonadDOM m => XMLHttpRequest -> Maybe JSVal -> m ()
        at src/JSDOM/Custom/<wbr>XMLHttpRequest.hs:44:1-62
    • In the expression: (`onException` abort self)
      In the second argument of ‘($)’, namely
        ‘(`onException` abort self)
         $ do { result <- liftIO newEmptyMVar;
                r <- withEvent
                       (onAsync self Generated.error . liftIO
                        $ putMVar result (Just XHRError))
                     $ withEvent
                         (onAsync self abortEvent . liftIO
                          $ putMVar result (Just XHRAborted))
                       $ withEvent (onAsync self load . liftIO $ putMVar result Nothing)
                         $ do { void
                                $ case mbVal of {
                                    Nothing -> ...
                                    Just val -> ... };
                                liftIO $ takeMVar result };
                throwXHRError r }’
      In the expression:
        liftDOM
        $ (`onException` abort self)
          $ do { result <- liftIO newEmptyMVar;
                 r <- withEvent
                        (onAsync self Generated.error . liftIO
                         $ putMVar result (Just XHRError))
                      $ withEvent
                          (onAsync self abortEvent . liftIO
                           $ putMVar result (Just XHRAborted))
                        $ withEvent (onAsync self load . liftIO $ putMVar result Nothing)
                          $ do { void
                                 $ case mbVal of {
                                     Nothing -> ...
                                     Just val -> ... };
                                 liftIO $ takeMVar result };
                 throwXHRError r }</span><br></span></div></div></div></div><span class="">
______________________________<wbr>_________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-<wbr>bin/mailman/listinfo/haskell-<wbr>cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</span></blockquote></div>
</blockquote></div><br></div>