Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Dec 14 01:31
    scala-steward opened #158
  • Nov 23 12:04

    alexarchambault on master

    Update sbt to 1.3.4 (#157) (compare)

  • Nov 23 12:04
    alexarchambault closed #157
  • Nov 23 11:38
    scala-steward opened #157
  • Nov 21 13:58

    alexarchambault on master

    Update sbt-scalajs, scalajs-com… (compare)

  • Nov 21 13:58
    alexarchambault closed #156
  • Nov 21 13:39
    scala-steward opened #156
  • Oct 14 10:25
    scala-steward opened #155
  • Oct 01 20:03
    scala-steward opened #154
  • Sep 23 20:30

    alexarchambault on master

    Update sbt-ci-release to 1.4.31… (compare)

  • Sep 23 20:30
    alexarchambault closed #153
  • Sep 23 18:22
    scala-steward opened #153
  • Sep 21 14:08
    alexarchambault closed #151
  • Sep 21 14:08
    alexarchambault commented #151
  • Sep 21 14:08
    alexarchambault closed #150
  • Sep 21 14:08
    alexarchambault commented #150
  • Sep 21 14:08
    alexarchambault closed #141
  • Sep 21 14:08
    alexarchambault commented #141
  • Sep 21 13:58

    alexarchambault on sbt-1.3

    (compare)

  • Sep 21 13:58
    alexarchambault closed #152
Alex Gryzlov
@clayrat
is it possible to auto-derive a codec for recursive ADT?
I get a stack overflow :(
seems like it worked with 0.3.0
Alex Gryzlov
@clayrat
yup, rollback to 0.3.1 makes it works and going to 1.0.0-M1 breaks it
dunno if it's a bug or a feature :)
guess I'll make an issue
Simon Hafner
@reactormonk
Bug.
Alexandre Archambault
@alexarchambault
FYI, I've been postponing a new release for some time now because of some obscure doc related errors I'm running into when doing publish... I'll have a closer look at it soon.
Abhishek Srivastava
@abhishes_twitter
I added the following line to my build.sbt "com.github.alexarchambault" %% "argonaut-shapeless_6.1" % "1.1.1" but still when I do import argonaut.derive._ it cannot find derieve. am I missing an sbt dependency?
Simon Hafner
@reactormonk
abhishes_twitter, the names changed a bit.
ah no, should work.
You sure did did sbt refresh and all the magic?
right, this is gitter, @abhishes_twitter
Simon Hafner
@reactormonk
Any way to make argonaut-shapeless write default values?
Alexandre Archambault
@alexarchambault
@reactormonk Writing or not the default value is handled by the JsonProductCodecs. The default one handles that around here.
By supplying a custom JsonProductCodec (like described here), you should be able to have those be written no matter what.
Simon Hafner
@reactormonk
@alexarchambault got a release with @JsonCodec?
Alexandre Archambault
@alexarchambault
1.2.0-M3 is on its way to Central (and on Sonatype releases since a few minutes).
I still have to update the README.
Simon Hafner
@reactormonk
Nice, thanks.
So 6.2?
Alexandre Archambault
@alexarchambault
Yeah, 6.2.
Simon Hafner
@reactormonk
Hmm, can't find some implicits generated by @JsonCodec - I guess it's my job to debug that.
Simon Hafner
@reactormonk
Did you remove codecs for Seq?
Or rather, argonaut.
Alexandre Archambault
@alexarchambault
@reactormonk JsonCodec is around (says unzip $(coursier fetch --intransitive com.github.alexarchambault::argonaut-shapeless_6.2:1.2.0-M3))
yeah, argonaut seems to have removed the codecs for Seq
those for List are still around
Simon Hafner
@reactormonk
Yeah, implemented that manually quick.
Simon Hafner
@reactormonk
implicit val JsonProductObjCodecFieldsAlwaysThere = new JsonProductObjCodec {
    override def encodeField(field: (String, Json), obj: Json, default: => Option[Json]): Json = {
      val (name, content) = field
      (toJsonName(name) -> content) ->: obj
    }
  }
... somehow doesn't get picked up.
Alexandre Archambault
@alexarchambault
it should be something like
val JsonProductObjCodecFieldsAlwaysThere = ...

implicit def jsonProductObjCodecFieldsAlwaysThereFor[T]: JsonProductCodecFor[T] = JsonProductCodecFor(JsonProductObjCodecFieldsAlwaysThere)
a bit like serpentCaseCodecFor in the README
Simon Hafner
@reactormonk
Nice, works. Thanks.
How come you need the carrier?
Alexandre Archambault
@alexarchambault
It's made this way so that different codecs can be supplied for different types.
Simon Hafner
@reactormonk
Pretty good idea.
Ross A. Baker
@rossabaker
Hi. Is the plan to release with alexarchambault/argonaut-shapeless#82 soon? I’m down to two missing dependencies, and this is one of them. :)
Simon Hafner
@reactormonk
It's only in there for tut IIRC
Ross A. Baker
@rossabaker
That’s true. It makes a nice example, but we can work around it if it’s the final blocker.
It’s been a long road to 2.12. :)
Simon Hafner
@reactormonk
Is there an argonaut-shapeless version that works with scalaz 7.2?
Let's see if "com.github.alexarchambault" %% "argonaut-shapeless_6.2" % "1.2.0-M3" works
Leon Clark
@leclark

would anyone object to a PR that adds a trait for ArgonautShapeless?

object ArgonautShapeless extends ArgonautShapeless

trait ArgonautShapeless
  extends SingletonInstances
  with DerivedInstances {

  object Cached
    extends SingletonInstances
    with CachedDerivedInstances
}

alexarchambault/argonaut-shapeless#89

Paul Snively
@PaulAtBanno
Hi everyone. Has anyone ever tackled adding support for certain Scalaz types, e.g. NonEmptyList?
Simon Hafner
@reactormonk
@PaulAtBanno not sure, shouldn't be too hard though.
Take a look at the list one, that should give you a good starting point.
Ben Kyrlach
@bkyrlach
Is there a way to make argonaut-shapeless work for ADTs where the base is a sealed class instead of a sealed trait?
I have a model that I want to be able to work with both in Argonaut and in MongoDB. The Mongo Scala macro for deriving a codec off of my ADT seemingly requires the base to be a class, and argonaut shapeless seemingly requires the base to be a trait.
Kevin Meredith
@kevinmeredith
Hi - is v1.2.0-M9 backwards compatible with v1.2.0-M6?