Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 19 13:41
    @jdegoes banned @Patrick160893
  • Jan 31 18:49
    ShermMeister starred scalaz/scalaz
  • Jan 31 05:21
    jonyroy starred scalaz/scalaz
  • Jan 30 20:34
    jmg-duarte starred scalaz/scalaz
  • Jan 30 18:43
    rajkirankv starred scalaz/scalaz
  • Jan 30 09:07
    llater starred scalaz/scalaz
  • Jan 30 07:41
    AgustaRC starred scalaz/scalaz
  • Jan 30 04:16
    LiFangzhe starred scalaz/scalaz
  • Jan 30 03:09
    xuwei-k labeled #2036
  • Jan 29 19:11
    tigrus commented #2036
  • Jan 29 19:11
    tigrus closed #2036
  • Jan 29 13:32
    NeQuissimus commented #2036
  • Jan 29 12:10

    xuwei-k on 7.2.x

    fix compile error with latest S… (compare)

  • Jan 29 06:30
    tigrus commented #2036
  • Jan 29 02:07
    NeQuissimus commented #2036
  • Jan 28 20:41
    tigrus commented #2036
  • Jan 28 19:12
    plokhotnyuk commented #2037
  • Jan 28 17:09
    hrhino review_requested #2037
  • Jan 28 15:32
    puffnfresh commented #2037
beezee
@beezee
if you're guaranteed success and you just have to do things to make the compiler happy then that you could call pure
Dominic Egger
@GrafBlutwurst
g
g. f has to be pure because if f can encode it g has to be able to successfully decode it
(sorry phone is terrible for typing about code)
beezee
@beezee
ah yeah that makes sense
Dominic Egger
@GrafBlutwurst
i'll dig more into this. there's some "reinventing the wheel" hiding here i'm sure
Georgi Krastev
@joroKr21
Any opinions on scalaz/scalaz#2076?
Emily Pillmore
@emilypi
@joroKr21 i'm agnostic on lub trickery. What was broken to warrant this fix?
Georgi Krastev
@joroKr21
The current encoding of tagged types includes neither the tag nor the type in implicit scope so we are forced to define orphan instances
But actually it doesn't matter what the encoding is so we just hide it
Emily Pillmore
@emilypi
not that my approval makes much difference anymore as i'm not a maintainer
but yes
agreed
Georgi Krastev
@joroKr21
Thanks :thumbsup:
Emily Pillmore
@emilypi
ayyy it's out!
nice congrats @alexknvl
realfiretiger
@realfiretiger

hello, does anyone know a smarter way of turning a List[Try[T]] to a Try[List[T]]?

atm I am using this:

      val listOfTrys: List[Try[Int]] = ???
      val acc: Try[List[Int]] = Success(
        List[Int]()
      )
      val result: Try[List[Int]] = listOfTrys.foldRight(acc)((a, b) => b.flatMap(v => a.map(v2 => v2 :: v)))
Luis Martinez
@luis3m
@realfiretiger did you try with sequence/traverse?
realfiretiger
@realfiretiger
no
i will look into those
Luis Martinez
@luis3m
:+1:
Jacob Niebloom
@niebloomj
Sequence is probably what you are looking for Luis.
Luis Martinez
@luis3m
@niebloomj that's @realfiretiger, not me :)
Jacob Niebloom
@niebloomj
My bad.
@realfiretiger you probably want sequence
subhash28
@subhash28
Hello All, newbie here trying to play around with scalaz. unable to "import scalaz.concurrent.Task". I get this error "Main.scala:4:15: object concurrent is not a member of package scalaz
[error] import scalaz.concurrent.Task". Any pointers please ?
Emily Pillmore
@emilypi
@subhash28 what version?
if you're pulling from HEAD, Task was removed a few PR's ago
subhash28
@subhash28
@emilypi I have tried scalaVersion := "2.11.2"
scalazVersion = "7.1.0"
Emily Pillmore
@emilypi
hmmm. it should be in there then
can you import scalaz._; Scalaz._?
subhash28
@subhash28
yes I can
Emily Pillmore
@emilypi
and scalaz.concurrent?
subhash28
@subhash28
No I cant...I get object concurrent is not a member of package scalaz
Emily Pillmore
@emilypi
then you don't have the scalaz-effect dependency in your dependency list
that functionality was modularized
it's in the README
subhash28
@subhash28
I am using these sbt settings..http://eed3si9n.com/learning-scalaz/sbt.html
Emily Pillmore
@emilypi
ah...don't do that. Rote code copying things from 7 years ago is never good :smile:. Just use scala 2.13.x and 7.2 for everything
though, I'm still not sure why that's not working for you
It's got to be somthing funky with your setup
maybe we can get a scala programmer in here to help you
Emily Pillmore
@emilypi
@hrhino?
subhash28
@subhash28
@emilypi thanks a lot, just got over the line. Tried version7.2.16. They have "scalaz-concurrent" dependency.
Emily Pillmore
@emilypi
cool ;)
Harrison Houghton
@hrhino
What am I doing?
Emily Pillmore
@emilypi
nothing - they got it figured out :)
Harrison Houghton
@hrhino
Always glad to help.