Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 02:05
    som-snytt commented #8885
  • 01:55
    som-snytt commented #7741
  • 01:52
    som-snytt commented #9672
  • 00:14
    SethTisue demilestoned #9121
  • 00:14
    SethTisue commented #9121
  • 00:13
    SethTisue closed #9121
  • 00:13
    SethTisue commented #9121
  • 00:12
    SethTisue commented #9672
  • 00:11
    SethTisue edited #9672
  • 00:10
    SethTisue demilestoned #7741
  • 00:10
    SethTisue closed #7741
  • 00:10
    SethTisue commented #7741
  • 00:09
    SethTisue review_requested #9703
  • 00:08
    SethTisue assigned #9706
  • 00:07
    SethTisue assigned #9706
  • 00:07
    SethTisue demilestoned #9869
  • 00:07
    SethTisue milestoned #9869
  • 00:07
    SethTisue assigned #9869
  • 00:07
    SethTisue milestoned #9538
  • 00:07

    SethTisue on 2.13.x

    Error on bad unapplySeq type I… Merge pull request #9715 from s… (compare)

nafg
@nafg
Maybe... I just need to know how to manage an encryption key, and then encrypt and decrypt a string map in and out of a cookie
Gavin Bisesi
@Daenyth
You might look at the CSRF middleware, it does cookie-related things
nafg
@nafg
I'm sure the cookie API isn't the hard part of what I said
old, but probably not hard to update
/shrug
yeah looks like it's ~150 lines of code effectively
there's only one relevant source file and it's under that size by itself
oh wow very old, scalaz.Task :grin:
Rob Norris
@tpolecat
eek
nafg
@nafg
Thanks
Gavin Bisesi
@Daenyth
anyway, the straightforward way to update that would be scalaz imports -> import cats.implicits._, F[_]: Sync instead of Task or so, and bump http4s version
the types look mostly the same
nafg
@nafg
I'm wondering about what to do then -- fork and publish to my bintray? Just copy-paste into my app? Find out if the author can accept and publish a PR?
Gavin Bisesi
@Daenyth
I'd just copy-paste it
it's one file
and the package object has one type alias defined
Gavin Bisesi
@Daenyth
@nafg I was also asking in the http4s channel, they did mention a PR adding it directly to the library itself would be acceptable
:wave: have a good weekend all :)
nafg
@nafg
not sure if I should trust 3 year old hand-rolled encryption code tbh
Ghost
@ghost~54f837fe15522ed4b3dcd6a3
I there a way to automatically derive a BsonTransformer for the MongoDB Driver without custom implementation via macros or shapeless?
Martijn Hoekstra
@martijnhoekstra
I wouldnt trust machine generated encryption code over hand rolled
At least, I think I wouldnt? How does machine generated encryption code work?
Soren
@srnb_gitlab
What are other languages with literal types besides Idris?
ritschwumm
@ritschwumm
typescript, i guess
Rob Norris
@tpolecat
You can do it in Haskell. And any dependently-typed language, of which Idris is one.
Rob Norris
@tpolecat
[error] Multiple repositories are found:
[error] [orgtpolecat-1125] status:open, profile:org.tpolecat(23052d71604fff) description: Implicitly created (auto staging).
[error] [orgtpolecat-1126] status:open, profile:org.tpolecat(23052d71604fff) description: Implicitly created (auto staging).
[error] Specify one of the repository ids in the command line
[error] java.lang.IllegalStateException: Found multiple staging repositories
One of my builds started doing this when doing sonatypeReleaseAll. What have I done and how do I fix it?
I went in and dropped them in the Nexus UI and tried again and it did it again.
Seth Tisue
@SethTisue
fwiw: when we're publishing Scala modules we almost always end up with multiple staging repos, a nondeterministic number of them. usually we just release them all at once through the Sonatype web and it's fine. some percentage of time, the files for a single target end up split between two staging repos, which can then neither be closed or released, and we have to run that target (and any targets that ended up mixed up in the affected repos) again
if you're ending up with multiple staging repos when you didn't before, it might be timing related, like maybe your build crossed some sort of threshold on how long it takes between one target and the next
the good news is that it might be fine to just release the multiple repos via the web UI, and not use sonatypeReleaseAll
anyway, I have only very partial understanding of this stuff, so perhaps someone who understands it better will have better advice for you.
</fwiw></ihavenoideawhatimdoing>
Li Haoyi
@lihaoyi
the multiple staging repos thing is a sbt quirk. Mill creates one staging repo, and always releases just that, without races in the presence of concurrent workflows
not sure what SBT is doing; mill’s code was written just following the sonatype api docs and it seems to do what i’d expect
Rob Norris
@tpolecat
Hell. Ok. Is it sbt or sbt-sonatype?
The plugin surely.
Seth Tisue
@SethTisue
it seems the ticket of record is xerial/sbt-sonatype#83
that's with +publishSigned though. often the repos I work in aren't using +, they're using the Travis-CI matrix to do the different parts. so idk
Rob Norris
@tpolecat
Nexus is the JIRA of package repositories. We need our own, it’s just absolute hell.
OlegYch
@OlegYch
who's going to support our version of hell
Rob Norris
@tpolecat
Scala Center?
They’re looking for ideas!
This has worked fine for me for many prior releases. It just started happening.
I feel like I’m taking crazy pills. I had a different random automation failure yesterday.
Rob Norris
@tpolecat
I need to switch to a language nobody uses so I won’t have to worry about this stuff.
I guess I could try Mill. @lihaoyi is there a way to run paradox and push stuff to gh-pages?
Luis Miguel Mejía Suárez
@BalmungSan

Hi,

I have something like this:

trait Factory[F[_]] {
  type R[A]
  def create[A](a: => A): R[A]
}

object Factory {
  type Aux[F[_], _R[_]] = Factory[F] { type R[A] = _R[A] 

  type Id[A] = A

  implicit val FutureFactory: Factory.Aux[Future, Id] =
    new Factory[Future] {
      override final type R[A] = A
      override final def create[A](a: => A): A = a
    }
}

object Driver {
  def driver[F[_]]: DriverPartiallyApplied[F] = new DriverPartiallyApplied(dummy = true)

  private final class DriverPartiallyApplied[F[_]](private val dummy: Boolean) extends AnyVal {
    def apply[R[_]](uri: String)(implicit F: Factory.Aux[F, R]): R[Driver[F]] =
      F.create(...)
  }
}

Now, on another project I would like to do this:

val driver: Driver[Future] = Driver.driver[Future]("uri")

But that does not compile with this error:

found: [R[_]]R[neotypes.Driver[scala.concurrent.Future]]
required: neotypes.Driver[scala.concurrent.Future]

If I leave out the explicit type signature, it works as expected. The compiler is able to figure out latter that driver is a Driver[Future].

Anyone knows how can I fix that?