Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Adam Rosien
    @arosien
    REPL output should be valid REPL input!
    Paul Carey
    @paulcarey
    thanks
    Adam Rosien
    @arosien
    np
    Alan Lewis
    @london-coder
    @arosien Appreciate the help, it did make sense, thank you. If you have a bit of time, could you possibly elaborate slightly on what you meant by "glue together"? I don't want you to think I'm asking for a complete solution, just a thumb nail sketch? Or, will having a look at the cats example be enough?
    @arosien , I've had a look at the examples in the link you included. I see what you meant now... many thanks.
    Adam Rosien
    @arosien
    no problem.
    "glue together" = more than 1 Either => 1 Either. a for-comprehension does this, but mapN also does it.
    Paul Carey
    @paulcarey
    actually, I see the same syntax - [A]Foo[Int, String, A] - on this post about partial unification, so I guess it does have a specific meaning that I'm not familiar with
    Adam Rosien
    @arosien
    what REPL is that? from sbt?
    Adam Rosien
    @arosien
    i think it is a "type lambda": we need a name for a unsupplied type parameter, so you first name it ([A]), then refer to it later in the type expression
    Paul Carey
    @paulcarey
    yep, sbt, but it also appears in the standard Scala REPL (2.13.1)
    premsagarreddy
    @premsagarreddy
    is there a way to create case class from nested json
    Noel Welsh
    @noelwelsh
    @premsagarreddy Most JSON libraries will support that. I usually use Circe for JSON in Scala.
    jspielmann
    @jspielmann
    Hello, quick question, does anyone have an sbt file with node/npm/frontend JS integration that I can use as inspiration?
    Adam Rosien
    @arosien
    @jspielmann i'm not sure i understand. like for using scalaJS?
    jspielmann
    @jspielmann
    @arosien no, I want to build my front end JS code when I run sbt compile, serve the front end when I run sbt run, etc.
    I tried using sbt frontend plugin but I get node errors that are related to rollup JS (I’m using svelte in the front end, which uses rollup as bundler)
    Adam Rosien
    @arosien
    i really don't know anything about js development, but if you need to use sbt for some reason, you can define your own tasks that could, for example, run external processes. i don't think it's common to use sbt for a js-only project though, if i'm interpreting you correctly.
    jspielmann
    @jspielmann
    backend is scala of course :)
    Adam Rosien
    @arosien
    it sounds a bit strange to make compile and run in sbt work on the frontend code, in the sense that those commands are intended to work with scala code. but it also sounds like the js-related tasks that sbt-frontend makes available isn't working with your js code.
    Noel Welsh
    @noelwelsh
    You can define an sbt task to execute arbitrary shell commands. That might do it.
    Perry Dunn
    @perrydunn
    Hi there, is there an update on a hard copy version of Scala with Cats?
    Adam Rosien
    @arosien
    @perrydunn no update yet :( i think our next priority is to update the book for the latest cats and for scala 3
    Perry Dunn
    @perrydunn
    Thanks for the update
    Mahesh Chand
    @mahesh2492
    Hi I need help