fthomas / fthomas/refined

Compose refinements

Open
#445 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Scala
Stars
1.7k
Forks
152
Avg merge
1h 20m
Merged PRs (30d)
6

Description

I have a (seemingly) unusual use-case with refined:

I would like to define a combination of refinements.

Here is a simple example:

```scala
import eu.timepit.refined.predicates.all._

type Hostname = NonEmptyString
type Port = PortNumber

type HostAddress = ??? // I would like this to be (NonEmptyString + ":" + PortNumber)
```

I don't think there is a way to do this in refined.
Any thoughts?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.