tristate-scalaz


License

License

Categories

Categories

Scala Languages
GroupId

GroupId

org.davidbild
ArtifactId

ArtifactId

tristate-scalaz_2.12
Last Version

Last Version

0.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

tristate-scalaz
tristate-scalaz
Project URL

Project URL

https://github.com/drbild/tristate
Project Organization

Project Organization

David R. Bild
Source Code Management

Source Code Management

https://github.com/drbild/tristate.git

Download tristate-scalaz_2.12

How to add to project

<!-- https://jarcasting.com/artifacts/org.davidbild/tristate-scalaz_2.12/ -->
<dependency>
    <groupId>org.davidbild</groupId>
    <artifactId>tristate-scalaz_2.12</artifactId>
    <version>0.4.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.davidbild/tristate-scalaz_2.12/
implementation 'org.davidbild:tristate-scalaz_2.12:0.4.0'
// https://jarcasting.com/artifacts/org.davidbild/tristate-scalaz_2.12/
implementation ("org.davidbild:tristate-scalaz_2.12:0.4.0")
'org.davidbild:tristate-scalaz_2.12:jar:0.4.0'
<dependency org="org.davidbild" name="tristate-scalaz_2.12" rev="0.4.0">
  <artifact name="tristate-scalaz_2.12" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.davidbild', module='tristate-scalaz_2.12', version='0.4.0')
)
libraryDependencies += "org.davidbild" % "tristate-scalaz_2.12" % "0.4.0"
[org.davidbild/tristate-scalaz_2.12 "0.4.0"]

Dependencies

compile (3)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.3
org.davidbild : tristate-core_2.12 jar 0.4.0
org.scalaz : scalaz-core_2.12 jar 7.2.30

Project Modules

There are no modules declared in this project.

tristate

Build Status Maven Central Scaladoc

Tristate[A] is three-valued variant of Option[A] distinguishing between Present[A](a: A), Absent, and Unspecified.

Name Description Scaladoc
tristate-core Main library API
tristate-play Play JSON Reads/Writes API
tristate-cats Cats Typeclasses API
tristate-scalaz Scalaz Typeclasses API

Installation

Add the following to your sbt build:

libraryDependencies += "org.davidbild" %% "tristate-core" % "0.4.0"

To support de/serialization using Play JSON, also add:

libraryDependencies += "org.davidbild" %% "tristate-play" % "0.4.0"

For Scalaz typeclass instances (Functor, Monad, etc.), also add:

libraryDependencies += "org.davidbild" %% "tristate-scalaz" % "0.4.0"

For Cats typeclass instances (Functor, Monad, etc.), also add:

libraryDependencies += "org.davidbild" %% "tristate-cats" % "0.4.0"

Usage

TODO

Import

import org.davidbild.tristate.Tristate

// For optional Play JSON support
import org.davidbild.tristate.contrib.play._

// For optional Scalaz typeclass support
import org.davidbild.tristate.contrib.scalaz._

// For optional Cats typeclass support
import org.davidbild.tristate.contrib.cats._

Documents

Contributing

Please submit bugs, questions, suggestions, or (ideally) contributions as issues and pull requests on Github.

Maintainers

David R. Bild https://www.davidbild.org

License

Copyright 2016 David R. Bild

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License from the LICENSE.txt file or at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Versions

Version
0.4.0
0.3.1
0.3.0