https://github.com/tofu-tf/glass
An optic library
https://github.com/tofu-tf/glass
optics profunctor-optics scala
Last synced: 10 months ago
JSON representation
An optic library
- Host: GitHub
- URL: https://github.com/tofu-tf/glass
- Owner: tofu-tf
- License: apache-2.0
- Created: 2022-08-05T10:19:37.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-02T15:06:12.000Z (11 months ago)
- Last Synced: 2025-02-02T16:19:38.265Z (11 months ago)
- Topics: optics, profunctor-optics, scala
- Language: Scala
- Homepage:
- Size: 3.42 MB
- Stars: 12
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README

# Glass
[](https://github.com/tofu-tf/glass/actions?query=workflow%3A%22Scala+CI%22)
[](https://maven-badges.herokuapp.com/maven-central/tf.tofu/glass-core_2.13)
[](https://discord.gg/qPD5GGH)
[](https://chat.zulip.org)
[](https://scala-steward.org)
**Glass is a modern optic library, formely known as tofu-optics**
# Quick Start
To use the whole utils pack just add to your `build.sbt`:
```scala
libraryDependencies += "tf.tofu" %% "glass" % "latest version in badge"
```
Of course, you can also specify an exact list of `glass` modules that you want to add to your dependencies (used in place
of `"glass"`):
* `glass-core` for optics core (Optics typeclasses)
* `glass-interop` for optics interop with [Monocle](https://github.com/julien-truffaut/Monocle)
* `glass-macro` for macro optics generators

# Adopters
Proud user of Glass? Feel free to [add your company!](https://github.com/tofu-tf/glass/edit/master/README.md)
# Contributing
Please note we use the following labels for automated release descriptions:
* `chore` if your PR does not change any types and runtime semantics
* `fix` if your PR merely fixes incorrect behavior
## Formatting
We have an automated check for style conformance. You can run `sbt checkfmt` before PR.
If you have any trouble during this check, just run `sbt fmt` and commit again.
# Copyright
Copyright the maintainers, 2019-2022
Logos made with love by [@impurepics](https://twitter.com/impurepics)