Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refined4s-core] Move toValue from refined4s.syntax to refined4s.NewtypeBase #186

Closed
kevin-lee opened this issue Dec 29, 2023 · 0 comments · Fixed by #187
Closed

[refined4s-core] Move toValue from refined4s.syntax to refined4s.NewtypeBase #186

kevin-lee opened this issue Dec 29, 2023 · 0 comments · Fixed by #187
Assignees
Labels
Milestone

Comments

@kevin-lee
Copy link
Owner

Summary

[refined4s-core] Move toValue from refined4s.syntax to refined4s.NewtypeBase

Version

0.6.0

Description

So with the given following code,

import refined4s.*
import refined4s.types.all.*

type Name = Name.Type
object Name extends Newtype[NonEmptyString]

the following is possible without importing any syntax.

val name = Name(NonEmptyString("Kevin"))
name.toValue
// String = "Kevin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
1 participant