From d1d506764ca7fe01dc1dc9ef60f2f4aa93a80f2a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 24 Jan 2024 21:36:09 +0000 Subject: [PATCH] Updated gh-pages --- 404.html | 2 +- assets/js/7fb136ad.70b331c5.js | 1 + assets/js/7fb136ad.a838a3e6.js | 1 - ...in.05fb36f7.js => runtime~main.1450a633.js} | 2 +- docs/cats/index.html | 2 +- docs/circe/index.html | 2 +- docs/core/index.html | 2 +- docs/core/newtype-refined/index.html | 2 +- docs/core/newtype/index.html | 2 +- docs/core/refined/custom-type/index.html | 2 +- docs/core/refined/index.html | 2 +- docs/core/refined/types/index.html | 2 +- docs/doobie/index.html | 2 +- docs/index.html | 18 +++++++++--------- docs/pureconfig/index.html | 2 +- index.html | 2 +- markdown-page/index.html | 2 +- 17 files changed, 24 insertions(+), 24 deletions(-) create mode 100644 assets/js/7fb136ad.70b331c5.js delete mode 100644 assets/js/7fb136ad.a838a3e6.js rename assets/js/{runtime~main.05fb36f7.js => runtime~main.1450a633.js} (98%) diff --git a/404.html b/404.html index e40c974..f89755f 100644 --- a/404.html +++ b/404.html @@ -7,7 +7,7 @@ - +
diff --git a/assets/js/7fb136ad.70b331c5.js b/assets/js/7fb136ad.70b331c5.js new file mode 100644 index 0000000..fed8380 --- /dev/null +++ b/assets/js/7fb136ad.70b331c5.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[631],{696:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>E,contentTitle:()=>D,default:()=>M,frontMatter:()=>I,metadata:()=>V,toc:()=>_});var i=s(5893),r=s(1151),l=s(7294),a=s(512),d=s(2466),c=s(6550),t=s(469),o=s(1980),h=s(7392),u=s(12);function f(e){return l.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,l.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Badrefined4s
?",id:"why-refined4s",level:2}];function A(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",img:"img",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{id:"refined4s",children:"Refined4s"}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.a,{href:"https://github.com/kevin-lee/refined4s/actions?workflow=Build-All",children:(0,i.jsx)(n.img,{src:"https://github.com/kevin-lee/refined4s/workflows/Build-All/badge.svg",alt:"Build Status"})}),"\n",(0,i.jsx)(n.a,{href:"https://github.com/kevin-lee/refined4s/actions?workflow=Release",children:(0,i.jsx)(n.img,{src:"https://github.com/kevin-lee/refined4s/workflows/Release/badge.svg",alt:"Release Status"})}),"\n",(0,i.jsx)(n.a,{href:"https://index.scala-lang.org/kevin-lee/refined4s",children:(0,i.jsx)(n.img,{src:"https://index.scala-lang.org/kevin-lee/refined4s/latest.svg",alt:"Latest version"})})]}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{alt:"Refined4s Logo",src:s(6420).Z+"",width:"320",height:"320"})}),"\n",(0,i.jsx)(n.p,{children:"Newtypes and Refinement types for Scala 3"}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{style:{textAlign:"right"},children:"Project"}),(0,i.jsx)(n.th,{children:"Maven Central"})]})}),(0,i.jsxs)(n.tbody,{children:[(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{style:{textAlign:"right"},children:"refined4s-core"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"https://search.maven.org/artifact/io.kevinlee/refined4s-core_3",children:(0,i.jsx)(n.img,{src:"https://maven-badges.herokuapp.com/maven-central/io.kevinlee/refined4s-core_3/badge.svg",alt:"Maven Central"})})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{style:{textAlign:"right"},children:"refined4s-cats"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"https://search.maven.org/artifact/io.kevinlee/refined4s-cats_3",children:(0,i.jsx)(n.img,{src:"https://maven-badges.herokuapp.com/maven-central/io.kevinlee/refined4s-cats_3/badge.svg",alt:"Maven Central"})})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{style:{textAlign:"right"},children:"refined4s-circe"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"https://search.maven.org/artifact/io.kevinlee/refined4s-circe_3",children:(0,i.jsx)(n.img,{src:"https://maven-badges.herokuapp.com/maven-central/io.kevinlee/refined4s-circe_3/badge.svg",alt:"Maven Central"})})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{style:{textAlign:"right"},children:"refined4s-pureconfig"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"https://search.maven.org/artifact/io.kevinlee/refined4s-pureconfig_3",children:(0,i.jsx)(n.img,{src:"https://maven-badges.herokuapp.com/maven-central/io.kevinlee/refined4s-pureconfig_3/badge.svg",alt:"Maven Central"})})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{style:{textAlign:"right"},children:"refined4s-doobie-ce2"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"https://search.maven.org/artifact/io.kevinlee/refined4s-doobie-ce2_3",children:(0,i.jsx)(n.img,{src:"https://maven-badges.herokuapp.com/maven-central/io.kevinlee/refined4s-doobie-ce2_3/badge.svg",alt:"Maven Central"})})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{style:{textAlign:"right"},children:"refined4s-doobie-ce3"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"https://search.maven.org/artifact/io.kevinlee/refined4s-doobie-ce3_3",children:(0,i.jsx)(n.img,{src:"https://maven-badges.herokuapp.com/maven-central/io.kevinlee/refined4s-doobie-ce3_3/badge.svg",alt:"Maven Central"})})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{style:{textAlign:"right"},children:"refined4s-extras-render"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"https://search.maven.org/artifact/io.kevinlee/refined4s-extras-render_3",children:(0,i.jsx)(n.img,{src:"https://maven-badges.herokuapp.com/maven-central/io.kevinlee/refined4s-extras-render_3/badge.svg",alt:"Maven Central"})})})]})]})]}),"\n",(0,i.jsx)(n.h2,{id:"getting-started",children:"Getting Started"}),"\n",(0,i.jsxs)(n.p,{children:["To get ",(0,i.jsx)(n.code,{children:"refined4s"})," for your project,"]}),"\n",(0,i.jsx)(n.h3,{id:"refined4s-core",children:"refined4s-core"}),"\n",(0,i.jsxs)(N,{groupId:"refined4s",defaultValue:"refined4s-sbt",values:[{label:"sbt",value:"refined4s-sbt"},{label:"sbt (with libraryDependencies)",value:"refined4s-sbt-lib"},{label:"scala-cli",value:"refined4s-scala-cli"}],children:[(0,i.jsxs)(w,{value:"refined4s-sbt",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %% "refined4s-core" % "0.13.0"\n'})}),(0,i.jsx)(n.p,{children:"or for Scala.js"}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %%% "refined4s-core" % "0.13.0"\n'})})]}),(0,i.jsxs)(w,{value:"refined4s-sbt-lib",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %% "refined4s-core" % "0.13.0"\n'})}),(0,i.jsx)(n.p,{children:"or for Scala.js"}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %%% "refined4s-core" % "0.13.0"\n'})})]}),(0,i.jsx)(w,{value:"refined4s-scala-cli",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'//> using dep "io.kevinlee::refined4s-core:0.13.0"\n'})})})]}),"\n",(0,i.jsx)(n.h3,{id:"refined4s-cats",children:"refined4s-cats"}),"\n",(0,i.jsxs)(N,{groupId:"refined4s",defaultValue:"refined4s-sbt",values:[{label:"sbt",value:"refined4s-sbt"},{label:"sbt (with libraryDependencies)",value:"refined4s-sbt-lib"},{label:"scala-cli",value:"refined4s-scala-cli"}],children:[(0,i.jsxs)(w,{value:"refined4s-sbt",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %% "refined4s-cats" % "0.13.0"\n'})}),(0,i.jsx)(n.p,{children:"or for Scala.js"}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %%% "refined4s-cats" % "0.13.0"\n'})})]}),(0,i.jsxs)(w,{value:"refined4s-sbt-lib",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %% "refined4s-cats" % "0.13.0"\n'})}),(0,i.jsx)(n.p,{children:"or for Scala.js"}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %%% "refined4s-cats" % "0.13.0"\n'})})]}),(0,i.jsx)(w,{value:"refined4s-scala-cli",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'//> using dep "io.kevinlee::refined4s-cats:0.13.0"\n'})})})]}),"\n",(0,i.jsx)(n.h3,{id:"refined4s-circe",children:"refined4s-circe"}),"\n",(0,i.jsxs)(N,{groupId:"refined4s",defaultValue:"refined4s-sbt",values:[{label:"sbt",value:"refined4s-sbt"},{label:"sbt (with libraryDependencies)",value:"refined4s-sbt-lib"},{label:"scala-cli",value:"refined4s-scala-cli"}],children:[(0,i.jsxs)(w,{value:"refined4s-sbt",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %% "refined4s-circe" % "0.13.0"\n'})}),(0,i.jsx)(n.p,{children:"or for Scala.js"}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %%% "refined4s-circe" % "0.13.0"\n'})})]}),(0,i.jsxs)(w,{value:"refined4s-sbt-lib",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %% "refined4s-circe" % "0.13.0"\n'})}),(0,i.jsx)(n.p,{children:"or for Scala.js"}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %%% "refined4s-circe" % "0.13.0"\n'})})]}),(0,i.jsx)(w,{value:"refined4s-scala-cli",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'//> using dep "io.kevinlee::refined4s-circe:0.13.0"\n'})})})]}),"\n",(0,i.jsx)(n.h3,{id:"refined4s-pureconfig",children:"refined4s-pureconfig"}),"\n",(0,i.jsxs)(N,{groupId:"refined4s",defaultValue:"refined4s-sbt",values:[{label:"sbt",value:"refined4s-sbt"},{label:"sbt (with libraryDependencies)",value:"refined4s-sbt-lib"},{label:"scala-cli",value:"refined4s-scala-cli"}],children:[(0,i.jsxs)(w,{value:"refined4s-sbt",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %% "refined4s-pureconfig" % "0.13.0"\n'})}),(0,i.jsx)(n.p,{children:"or for Scala.js"}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %%% "refined4s-pureconfig" % "0.13.0"\n'})})]}),(0,i.jsxs)(w,{value:"refined4s-sbt-lib",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %% "refined4s-pureconfig" % "0.13.0"\n'})}),(0,i.jsx)(n.p,{children:"or for Scala.js"}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %%% "refined4s-pureconfig" % "0.13.0"\n'})})]}),(0,i.jsx)(w,{value:"refined4s-scala-cli",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'//> using dep "io.kevinlee::refined4s-pureconfig:0.13.0"\n'})})})]}),"\n",(0,i.jsx)(n.h3,{id:"refined4s-doobie-ce2",children:"refined4s-doobie-ce2"}),"\n",(0,i.jsxs)(N,{groupId:"refined4s",defaultValue:"refined4s-sbt",values:[{label:"sbt",value:"refined4s-sbt"},{label:"sbt (with libraryDependencies)",value:"refined4s-sbt-lib"},{label:"scala-cli",value:"refined4s-scala-cli"}],children:[(0,i.jsxs)(w,{value:"refined4s-sbt",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %% "refined4s-doobie-ce2" % "0.13.0"\n'})}),(0,i.jsx)(n.p,{children:"or for Scala.js"}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %%% "refined4s-doobie-ce2" % "0.13.0"\n'})})]}),(0,i.jsxs)(w,{value:"refined4s-sbt-lib",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %% "refined4s-doobie-ce2" % "0.13.0"\n'})}),(0,i.jsx)(n.p,{children:"or for Scala.js"}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %%% "refined4s-doobie-ce2" % "0.13.0"\n'})})]}),(0,i.jsx)(w,{value:"refined4s-scala-cli",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'//> using dep "io.kevinlee::refined4s-doobie-ce2:0.13.0"\n'})})})]}),"\n",(0,i.jsx)(n.h3,{id:"refined4s-doobie-ce3",children:"refined4s-doobie-ce3"}),"\n",(0,i.jsxs)(N,{groupId:"refined4s",defaultValue:"refined4s-sbt",values:[{label:"sbt",value:"refined4s-sbt"},{label:"sbt (with libraryDependencies)",value:"refined4s-sbt-lib"},{label:"scala-cli",value:"refined4s-scala-cli"}],children:[(0,i.jsxs)(w,{value:"refined4s-sbt",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %% "refined4s-doobie-ce3" % "0.13.0"\n'})}),(0,i.jsx)(n.p,{children:"or for Scala.js"}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %%% "refined4s-doobie-ce3" % "0.13.0"\n'})})]}),(0,i.jsxs)(w,{value:"refined4s-sbt-lib",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %% "refined4s-doobie-ce3" % "0.13.0"\n'})}),(0,i.jsx)(n.p,{children:"or for Scala.js"}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %%% "refined4s-doobie-ce3" % "0.13.0"\n'})})]}),(0,i.jsx)(w,{value:"refined4s-scala-cli",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'//> using dep "io.kevinlee::refined4s-doobie-ce3:0.13.0"\n'})})})]}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"refined4s-extras-render",children:"refined4s-extras-render"}),"\n",(0,i.jsxs)(N,{groupId:"refined4s",defaultValue:"refined4s-sbt",values:[{label:"sbt",value:"refined4s-sbt"},{label:"sbt (with libraryDependencies)",value:"refined4s-sbt-lib"},{label:"scala-cli",value:"refined4s-scala-cli"}],children:[(0,i.jsxs)(w,{value:"refined4s-sbt",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %% "refined4s-extras-render" % "0.13.0"\n'})}),(0,i.jsx)(n.p,{children:"or for Scala.js"}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %%% "refined4s-extras-render" % "0.13.0"\n'})})]}),(0,i.jsxs)(w,{value:"refined4s-sbt-lib",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %% "refined4s-extras-render" % "0.13.0"\n'})}),(0,i.jsx)(n.p,{children:"or for Scala.js"}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %%% "refined4s-extras-render" % "0.13.0"\n'})})]}),(0,i.jsx)(w,{value:"refined4s-scala-cli",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'//> using dep "io.kevinlee::refined4s-extras-render:0.13.0"\n'})})})]}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"all-refined4s-modules",children:"All refined4s modules"}),"\n",(0,i.jsxs)(N,{groupId:"refined4s",defaultValue:"refined4s-sbt",values:[{label:"sbt",value:"refined4s-sbt"},{label:"sbt (with libraryDependencies)",value:"refined4s-sbt-lib"},{label:"scala-cli",value:"refined4s-scala-cli"}],children:[(0,i.jsxs)(w,{value:"refined4s-sbt",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %% "refined4s-core" % "0.13.0",\n"io.kevinlee" %% "refined4s-cats" % "0.13.0",\n"io.kevinlee" %% "refined4s-circe" % "0.13.0",\n"io.kevinlee" %% "refined4s-pureconfig" % "0.13.0",\n"io.kevinlee" %% "refined4s-doobie-ce2" % "0.13.0", // Use either refined4s-doobie-ce2\n"io.kevinlee" %% "refined4s-doobie-ce3" % "0.13.0", // OR refined4s-doobie-ce3\n"io.kevinlee" %% "refined4s-extras-render" % "0.13.0",\n'})}),(0,i.jsx)(n.p,{children:"or for Scala.js"}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %%% "refined4s-core" % "0.13.0",\n"io.kevinlee" %%% "refined4s-cats" % "0.13.0",\n"io.kevinlee" %%% "refined4s-circe" % "0.13.0",\n"io.kevinlee" %%% "refined4s-pureconfig" % "0.13.0",\n"io.kevinlee" %%% "refined4s-doobie-ce2" % "0.13.0", // Use either refined4s-doobie-ce2\n"io.kevinlee" %%% "refined4s-doobie-ce3" % "0.13.0", // OR refined4s-doobie-ce3\n"io.kevinlee" %%% "refined4s-extras-render" % "0.13.0",\n'})})]}),(0,i.jsxs)(w,{value:"refined4s-sbt-lib",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies ++= Seq(\n "io.kevinlee" %% "refined4s-core" % "0.13.0",\n "io.kevinlee" %% "refined4s-cats" % "0.13.0",\n "io.kevinlee" %% "refined4s-circe" % "0.13.0",\n "io.kevinlee" %% "refined4s-pureconfig" % "0.13.0",\n "io.kevinlee" %% "refined4s-doobie-ce2" % "0.13.0", // Use either refined4s-doobie-ce2\n "io.kevinlee" %% "refined4s-doobie-ce3" % "0.13.0", // OR refined4s-doobie-ce3\n "io.kevinlee" %% "refined4s-extras-render" % "0.13.0",\n)\n'})}),(0,i.jsx)(n.p,{children:"or for Scala.js"}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies ++= Seq(\n "io.kevinlee" %%% "refined4s-core" % "0.13.0",\n "io.kevinlee" %%% "refined4s-cats" % "0.13.0",\n "io.kevinlee" %%% "refined4s-circe" % "0.13.0",\n "io.kevinlee" %%% "refined4s-pureconfig" % "0.13.0",\n "io.kevinlee" %%% "refined4s-doobie-ce2" % "0.13.0", // Use either refined4s-doobie-ce2\n "io.kevinlee" %%% "refined4s-doobie-ce3" % "0.13.0", // OR refined4s-doobie-ce3\n "io.kevinlee" %%% "refined4s-extras-render" % "0.13.0",\n)\n'})})]}),(0,i.jsx)(w,{value:"refined4s-scala-cli",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'//> using dep "io.kevinlee::refined4s-core:0.13.0"\n//> using dep "io.kevinlee::refined4s-cats:0.13.0"\n//> using dep "io.kevinlee::refined4s-circe:0.13.0"\n//> using dep "io.kevinlee::refined4s-pureconfig:0.13.0"\n//> using dep "io.kevinlee::refined4s-doobie-ce2:0.13.0" // Use either refined4s-doobie-ce2\n//> using dep "io.kevinlee::refined4s-doobie-ce3:0.13.0" // OR refined4s-doobie-ce3\n//> using dep "io.kevinlee::refined4s-extras-render:0.13.0"\n'})})})]}),"\n",(0,i.jsxs)(n.h2,{id:"why-refined4s",children:["Why ",(0,i.jsx)(n.code,{children:"refined4s"}),"?"]}),"\n",(0,i.jsx)(n.p,{children:"Given the following methods"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'def hello(name: String): Unit = println(s"Hello $name")\ndef sendEmail(email: String): Unit = {\n println(s"Sending email to [email address: $email]")\n // ... send email\n}\n'})}),"\n",(0,i.jsx)(n.p,{children:"You can easily mess up method parameters like this."}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'val name = "Kevin"\n// name: String = "Kevin"\nval email = "blah@blah.blah"\n// email: String = "blah@blah.blah"\n\nhello(email)\n// Hello blah@blah.blah\nsendEmail(name)\n// Sending email to [email address: Kevin]\n'})}),"\n",(0,i.jsxs)(n.p,{children:["If you use ",(0,i.jsx)(n.code,{children:"refined4s"}),", you don't need to worry about that anymore."]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'import refined4s.*\n\ntype Name = Name.Type\n\nobject Name extends Newtype[String]\n\ntype Email = Email.Type\n\nobject Email extends Newtype[String]\n\ndef hello(name: Name): Unit = println(s"Hello ${name.value}")\ndef sendEmail(email: Email): Unit = {\n println(s"Sending email to [email address: ${email.value}]")\n // ... send email\n}\n'})}),"\n",(0,i.jsx)(n.p,{children:"You can easily mess up method parameters like this."}),"\n",(0,i.jsx)(n.p,{children:"If you pass the right types, it works."}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'val name = Name("Kevin")\n// name: Type = "Kevin"\nval email = Email("blah@blah.blah")\n// email: Type = "blah@blah.blah"\n\nhello(name)\n// Hello Kevin\nsendEmail(email)\n// Sending email to [email address: blah@blah.blah]\n'})}),"\n",(0,i.jsx)(n.p,{children:"If you don't, it does not compile."}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:"hello(email)\nsendEmail(name)\n// error:\n// Found: (repl.MdocSession.MdocApp1.email : repl.MdocSession.MdocApp1.Email.Type)\n// Required: repl.MdocSession.MdocApp1.Name\n// hello(email)\n// ^^^^^\n// error:\n// Found: (repl.MdocSession.MdocApp1.name : repl.MdocSession.MdocApp1.Name.Type)\n// Required: repl.MdocSession.MdocApp1.Email\n// sendEmail(name)\n// ^^^^\n// error: \n// Line is indented too far to the left, or a `}` is missing\n// error: \n// Line is indented too far to the left, or a `}` is missing\n// error: \n// Line is indented too far to the left, or a `}` is missing\n"})})]})}function M(e={}){const{wrapper:n}={...(0,r.a)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(A,{...e})}):A(e)}},6420:(e,n,s)=>{s.d(n,{Z:()=>i});const i=s.p+"assets/images/refined4s-320x320-2483b0bb373fca5ed168465ebe10e97e.png"},1151:(e,n,s)=>{s.d(n,{Z:()=>d,a:()=>a});var i=s(7294);const r={},l=i.createContext(r);function a(e){const n=i.useContext(l);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),i.createElement(l.Provider,{value:n},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/7fb136ad.a838a3e6.js b/assets/js/7fb136ad.a838a3e6.js
deleted file mode 100644
index c873202..0000000
--- a/assets/js/7fb136ad.a838a3e6.js
+++ /dev/null
@@ -1 +0,0 @@
-"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[631],{696:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>_,contentTitle:()=>V,default:()=>M,frontMatter:()=>S,metadata:()=>E,toc:()=>A});var i=s(5893),l=s(1151),r=s(7294),a=s(512),d=s(2466),t=s(6550),c=s(469),o=s(1980),u=s(7392),h=s(12);function f(e){return r.Children.toArray(e).filter((e=>"\n"!==e)).map((e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:n}=e;return!!n&&"object"==typeof n&&"value"in n}(e))return e;throw new Error(`Docusaurus error: Bad refined4s
?",id:"why-refined4s",level:2}];function D(e){const n={a:"a",code:"code",h1:"h1",h2:"h2",h3:"h3",hr:"hr",img:"img",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,l.a)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.h1,{id:"refined4s",children:"Refined4s"}),"\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.a,{href:"https://github.com/kevin-lee/refined4s/actions?workflow=Build-All",children:(0,i.jsx)(n.img,{src:"https://github.com/kevin-lee/refined4s/workflows/Build-All/badge.svg",alt:"Build Status"})}),"\n",(0,i.jsx)(n.a,{href:"https://github.com/kevin-lee/refined4s/actions?workflow=Release",children:(0,i.jsx)(n.img,{src:"https://github.com/kevin-lee/refined4s/workflows/Release/badge.svg",alt:"Release Status"})}),"\n",(0,i.jsx)(n.a,{href:"https://index.scala-lang.org/kevin-lee/refined4s",children:(0,i.jsx)(n.img,{src:"https://index.scala-lang.org/kevin-lee/refined4s/latest.svg",alt:"Latest version"})})]}),"\n",(0,i.jsx)(n.p,{children:(0,i.jsx)(n.img,{alt:"Refined4s Logo",src:s(6420).Z+"",width:"320",height:"320"})}),"\n",(0,i.jsx)(n.p,{children:"Newtypes and Refinement types for Scala 3"}),"\n",(0,i.jsxs)(n.table,{children:[(0,i.jsx)(n.thead,{children:(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.th,{style:{textAlign:"right"},children:"Project"}),(0,i.jsx)(n.th,{children:"Maven Central"})]})}),(0,i.jsxs)(n.tbody,{children:[(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{style:{textAlign:"right"},children:"refined4s-core"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"https://search.maven.org/artifact/io.kevinlee/refined4s-core_3",children:(0,i.jsx)(n.img,{src:"https://maven-badges.herokuapp.com/maven-central/io.kevinlee/refined4s-core_3/badge.svg",alt:"Maven Central"})})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{style:{textAlign:"right"},children:"refined4s-cats"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"https://search.maven.org/artifact/io.kevinlee/refined4s-cats_3",children:(0,i.jsx)(n.img,{src:"https://maven-badges.herokuapp.com/maven-central/io.kevinlee/refined4s-cats_3/badge.svg",alt:"Maven Central"})})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{style:{textAlign:"right"},children:"refined4s-circe"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"https://search.maven.org/artifact/io.kevinlee/refined4s-circe_3",children:(0,i.jsx)(n.img,{src:"https://maven-badges.herokuapp.com/maven-central/io.kevinlee/refined4s-circe_3/badge.svg",alt:"Maven Central"})})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{style:{textAlign:"right"},children:"refined4s-pureconfig"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"https://search.maven.org/artifact/io.kevinlee/refined4s-pureconfig_3",children:(0,i.jsx)(n.img,{src:"https://maven-badges.herokuapp.com/maven-central/io.kevinlee/refined4s-pureconfig_3/badge.svg",alt:"Maven Central"})})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{style:{textAlign:"right"},children:"refined4s-doobie-ce2"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"https://search.maven.org/artifact/io.kevinlee/refined4s-doobie-ce2_3",children:(0,i.jsx)(n.img,{src:"https://maven-badges.herokuapp.com/maven-central/io.kevinlee/refined4s-doobie-ce2_3/badge.svg",alt:"Maven Central"})})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{style:{textAlign:"right"},children:"refined4s-doobie-ce3"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"https://search.maven.org/artifact/io.kevinlee/refined4s-doobie-ce3_3",children:(0,i.jsx)(n.img,{src:"https://maven-badges.herokuapp.com/maven-central/io.kevinlee/refined4s-doobie-ce3_3/badge.svg",alt:"Maven Central"})})})]}),(0,i.jsxs)(n.tr,{children:[(0,i.jsx)(n.td,{style:{textAlign:"right"},children:"refined4s-extras-render"}),(0,i.jsx)(n.td,{children:(0,i.jsx)(n.a,{href:"https://search.maven.org/artifact/io.kevinlee/refined4s-extras-render_3",children:(0,i.jsx)(n.img,{src:"https://maven-badges.herokuapp.com/maven-central/io.kevinlee/refined4s-extras-render_3/badge.svg",alt:"Maven Central"})})})]})]})]}),"\n",(0,i.jsx)(n.h2,{id:"getting-started",children:"Getting Started"}),"\n",(0,i.jsxs)(n.p,{children:["To get ",(0,i.jsx)(n.code,{children:"refined4s"})," for your project,"]}),"\n",(0,i.jsx)(n.h3,{id:"refined4s-core",children:"refined4s-core"}),"\n",(0,i.jsxs)(N,{groupId:"refined4s",defaultValue:"refined4s-sbt",values:[{label:"sbt",value:"refined4s-sbt"},{label:"sbt (with libraryDependencies)",value:"refined4s-sbt-lib"},{label:"scala-cli",value:"refined4s-scala-cli"}],children:[(0,i.jsxs)(I,{value:"refined4s-sbt",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %% "refined4s-core" % "0.13.0"\n'})})]}),(0,i.jsxs)(I,{value:"refined4s-sbt-lib",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %% "refined4s-core" % "0.13.0"\n'})})]}),(0,i.jsx)(I,{value:"refined4s-scala-cli",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'//> using dep "io.kevinlee::refined4s-core:0.13.0"\n'})})})]}),"\n",(0,i.jsx)(n.h3,{id:"refined4s-cats",children:"refined4s-cats"}),"\n",(0,i.jsxs)(N,{groupId:"refined4s",defaultValue:"refined4s-sbt",values:[{label:"sbt",value:"refined4s-sbt"},{label:"sbt (with libraryDependencies)",value:"refined4s-sbt-lib"},{label:"scala-cli",value:"refined4s-scala-cli"}],children:[(0,i.jsxs)(I,{value:"refined4s-sbt",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %% "refined4s-cats" % "0.13.0"\n'})})]}),(0,i.jsxs)(I,{value:"refined4s-sbt-lib",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %% "refined4s-cats" % "0.13.0"\n'})})]}),(0,i.jsx)(I,{value:"refined4s-scala-cli",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'//> using dep "io.kevinlee::refined4s-cats:0.13.0"\n'})})})]}),"\n",(0,i.jsx)(n.h3,{id:"refined4s-circe",children:"refined4s-circe"}),"\n",(0,i.jsxs)(N,{groupId:"refined4s",defaultValue:"refined4s-sbt",values:[{label:"sbt",value:"refined4s-sbt"},{label:"sbt (with libraryDependencies)",value:"refined4s-sbt-lib"},{label:"scala-cli",value:"refined4s-scala-cli"}],children:[(0,i.jsxs)(I,{value:"refined4s-sbt",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %% "refined4s-circe" % "0.13.0"\n'})})]}),(0,i.jsxs)(I,{value:"refined4s-sbt-lib",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %% "refined4s-circe" % "0.13.0"\n'})})]}),(0,i.jsx)(I,{value:"refined4s-scala-cli",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'//> using dep "io.kevinlee::refined4s-circe:0.13.0"\n'})})})]}),"\n",(0,i.jsx)(n.h3,{id:"refined4s-pureconfig",children:"refined4s-pureconfig"}),"\n",(0,i.jsxs)(N,{groupId:"refined4s",defaultValue:"refined4s-sbt",values:[{label:"sbt",value:"refined4s-sbt"},{label:"sbt (with libraryDependencies)",value:"refined4s-sbt-lib"},{label:"scala-cli",value:"refined4s-scala-cli"}],children:[(0,i.jsxs)(I,{value:"refined4s-sbt",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %% "refined4s-pureconfig" % "0.13.0"\n'})})]}),(0,i.jsxs)(I,{value:"refined4s-sbt-lib",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %% "refined4s-pureconfig" % "0.13.0"\n'})})]}),(0,i.jsx)(I,{value:"refined4s-scala-cli",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'//> using dep "io.kevinlee::refined4s-pureconfig:0.13.0"\n'})})})]}),"\n",(0,i.jsx)(n.h3,{id:"refined4s-doobie-ce2",children:"refined4s-doobie-ce2"}),"\n",(0,i.jsxs)(N,{groupId:"refined4s",defaultValue:"refined4s-sbt",values:[{label:"sbt",value:"refined4s-sbt"},{label:"sbt (with libraryDependencies)",value:"refined4s-sbt-lib"},{label:"scala-cli",value:"refined4s-scala-cli"}],children:[(0,i.jsxs)(I,{value:"refined4s-sbt",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %% "refined4s-doobie-ce2" % "0.13.0"\n'})})]}),(0,i.jsxs)(I,{value:"refined4s-sbt-lib",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %% "refined4s-doobie-ce2" % "0.13.0"\n'})})]}),(0,i.jsx)(I,{value:"refined4s-scala-cli",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'//> using dep "io.kevinlee::refined4s-doobie-ce2:0.13.0"\n'})})})]}),"\n",(0,i.jsx)(n.h3,{id:"refined4s-doobie-ce3",children:"refined4s-doobie-ce3"}),"\n",(0,i.jsxs)(N,{groupId:"refined4s",defaultValue:"refined4s-sbt",values:[{label:"sbt",value:"refined4s-sbt"},{label:"sbt (with libraryDependencies)",value:"refined4s-sbt-lib"},{label:"scala-cli",value:"refined4s-scala-cli"}],children:[(0,i.jsxs)(I,{value:"refined4s-sbt",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %% "refined4s-doobie-ce3" % "0.13.0"\n'})})]}),(0,i.jsxs)(I,{value:"refined4s-sbt-lib",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %% "refined4s-doobie-ce3" % "0.13.0"\n'})})]}),(0,i.jsx)(I,{value:"refined4s-scala-cli",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'//> using dep "io.kevinlee::refined4s-doobie-ce3:0.13.0"\n'})})})]}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"refined4s-extras-render",children:"refined4s-extras-render"}),"\n",(0,i.jsxs)(N,{groupId:"refined4s",defaultValue:"refined4s-sbt",values:[{label:"sbt",value:"refined4s-sbt"},{label:"sbt (with libraryDependencies)",value:"refined4s-sbt-lib"},{label:"scala-cli",value:"refined4s-scala-cli"}],children:[(0,i.jsxs)(I,{value:"refined4s-sbt",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %% "refined4s-extras-render" % "0.13.0"\n'})})]}),(0,i.jsxs)(I,{value:"refined4s-sbt-lib",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies += "io.kevinlee" %% "refined4s-extras-render" % "0.13.0"\n'})})]}),(0,i.jsx)(I,{value:"refined4s-scala-cli",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'//> using dep "io.kevinlee::refined4s-extras-render:0.13.0"\n'})})})]}),"\n",(0,i.jsx)(n.hr,{}),"\n",(0,i.jsx)(n.h3,{id:"all-refined4s-modules",children:"All refined4s modules"}),"\n",(0,i.jsxs)(N,{groupId:"refined4s",defaultValue:"refined4s-sbt",values:[{label:"sbt",value:"refined4s-sbt"},{label:"sbt (with libraryDependencies)",value:"refined4s-sbt-lib"},{label:"scala-cli",value:"refined4s-scala-cli"}],children:[(0,i.jsxs)(I,{value:"refined4s-sbt",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'"io.kevinlee" %% "refined4s-core" % "0.13.0",\n"io.kevinlee" %% "refined4s-cats" % "0.13.0",\n"io.kevinlee" %% "refined4s-circe" % "0.13.0",\n"io.kevinlee" %% "refined4s-pureconfig" % "0.13.0",\n"io.kevinlee" %% "refined4s-doobie-ce2" % "0.13.0", // Use either refined4s-doobie-ce2\n"io.kevinlee" %% "refined4s-doobie-ce3" % "0.13.0", // OR refined4s-doobie-ce3\n"io.kevinlee" %% "refined4s-extras-render" % "0.13.0",\n'})})]}),(0,i.jsxs)(I,{value:"refined4s-sbt-lib",children:[(0,i.jsxs)(n.p,{children:["In ",(0,i.jsx)(n.code,{children:"build.sbt"}),","]}),(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'libraryDependencies ++= Seq(\n "io.kevinlee" %% "refined4s-core" % "0.13.0",\n "io.kevinlee" %% "refined4s-cats" % "0.13.0",\n "io.kevinlee" %% "refined4s-circe" % "0.13.0",\n "io.kevinlee" %% "refined4s-pureconfig" % "0.13.0",\n "io.kevinlee" %% "refined4s-doobie-ce2" % "0.13.0", // Use either refined4s-doobie-ce2\n "io.kevinlee" %% "refined4s-doobie-ce3" % "0.13.0", // OR refined4s-doobie-ce3\n "io.kevinlee" %% "refined4s-extras-render" % "0.13.0",\n)\n'})})]}),(0,i.jsx)(I,{value:"refined4s-scala-cli",children:(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'//> using dep "io.kevinlee::refined4s-core:0.13.0"\n//> using dep "io.kevinlee::refined4s-cats:0.13.0"\n//> using dep "io.kevinlee::refined4s-circe:0.13.0"\n//> using dep "io.kevinlee::refined4s-pureconfig:0.13.0"\n//> using dep "io.kevinlee::refined4s-doobie-ce2:0.13.0" // Use either refined4s-doobie-ce2\n//> using dep "io.kevinlee::refined4s-doobie-ce3:0.13.0" // OR refined4s-doobie-ce3\n//> using dep "io.kevinlee::refined4s-extras-render:0.13.0"\n'})})})]}),"\n",(0,i.jsxs)(n.h2,{id:"why-refined4s",children:["Why ",(0,i.jsx)(n.code,{children:"refined4s"}),"?"]}),"\n",(0,i.jsx)(n.p,{children:"Given the following methods"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'def hello(name: String): Unit = println(s"Hello $name")\ndef sendEmail(email: String): Unit = {\n println(s"Sending email to [email address: $email]")\n // ... send email\n}\n'})}),"\n",(0,i.jsx)(n.p,{children:"You can easily mess up method parameters like this."}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'val name = "Kevin"\n// name: String = "Kevin"\nval email = "blah@blah.blah"\n// email: String = "blah@blah.blah"\n\nhello(email)\n// Hello blah@blah.blah\nsendEmail(name)\n// Sending email to [email address: Kevin]\n'})}),"\n",(0,i.jsxs)(n.p,{children:["If you use ",(0,i.jsx)(n.code,{children:"refined4s"}),", you don't need to worry about that anymore."]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'import refined4s.*\n\ntype Name = Name.Type\n\nobject Name extends Newtype[String]\n\ntype Email = Email.Type\n\nobject Email extends Newtype[String]\n\ndef hello(name: Name): Unit = println(s"Hello ${name.value}")\ndef sendEmail(email: Email): Unit = {\n println(s"Sending email to [email address: ${email.value}]")\n // ... send email\n}\n'})}),"\n",(0,i.jsx)(n.p,{children:"You can easily mess up method parameters like this."}),"\n",(0,i.jsx)(n.p,{children:"If you pass the right types, it works."}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:'val name = Name("Kevin")\n// name: Type = "Kevin"\nval email = Email("blah@blah.blah")\n// email: Type = "blah@blah.blah"\n\nhello(name)\n// Hello Kevin\nsendEmail(email)\n// Sending email to [email address: blah@blah.blah]\n'})}),"\n",(0,i.jsx)(n.p,{children:"If you don't, it does not compile."}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-scala",children:"hello(email)\nsendEmail(name)\n// error:\n// Found: (repl.MdocSession.MdocApp1.email : repl.MdocSession.MdocApp1.Email.Type)\n// Required: repl.MdocSession.MdocApp1.Name\n// hello(email)\n// ^^^^^\n// error:\n// Found: (repl.MdocSession.MdocApp1.name : repl.MdocSession.MdocApp1.Name.Type)\n// Required: repl.MdocSession.MdocApp1.Email\n// sendEmail(name)\n// ^^^^\n// error: \n// Line is indented too far to the left, or a `}` is missing\n// error: \n// Line is indented too far to the left, or a `}` is missing\n// error: \n// Line is indented too far to the left, or a `}` is missing\n"})})]})}function M(e={}){const{wrapper:n}={...(0,l.a)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(D,{...e})}):D(e)}},6420:(e,n,s)=>{s.d(n,{Z:()=>i});const i=s.p+"assets/images/refined4s-320x320-2483b0bb373fca5ed168465ebe10e97e.png"},1151:(e,n,s)=>{s.d(n,{Z:()=>d,a:()=>a});var i=s(7294);const l={},r=i.createContext(l);function a(e){const n=i.useContext(r);return i.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(l):e.components||l:a(e.components),i.createElement(r.Provider,{value:n},e.children)}}}]);
\ No newline at end of file
diff --git a/assets/js/runtime~main.05fb36f7.js b/assets/js/runtime~main.1450a633.js
similarity index 98%
rename from assets/js/runtime~main.05fb36f7.js
rename to assets/js/runtime~main.1450a633.js
index c4a6b05..3c34d05 100644
--- a/assets/js/runtime~main.05fb36f7.js
+++ b/assets/js/runtime~main.1450a633.js
@@ -1 +1 @@
-(()=>{"use strict";var e,t,r,a,o,n={},c={};function f(e){var t=c[e];if(void 0!==t)return t.exports;var r=c[e]={exports:{}};return n[e].call(r.exports,r,r.exports,f),r.exports}f.m=n,e=[],f.O=(t,r,a,o)=>{if(!r){var n=1/0;for(b=0;bTo get refined4s
for your project,
In build.sbt
,
"io.kevinlee" %% "refined4s-core" % "0.13.0"
In build.sbt
,
libraryDependencies += "io.kevinlee" %% "refined4s-core" % "0.13.0"
//> using dep "io.kevinlee::refined4s-core:0.13.0"
In build.sbt
,
"io.kevinlee" %% "refined4s-core" % "0.13.0"
or for Scala.js
"io.kevinlee" %%% "refined4s-core" % "0.13.0"
In build.sbt
,
libraryDependencies += "io.kevinlee" %% "refined4s-core" % "0.13.0"
or for Scala.js
libraryDependencies += "io.kevinlee" %%% "refined4s-core" % "0.13.0"
//> using dep "io.kevinlee::refined4s-core:0.13.0"
In build.sbt
,
"io.kevinlee" %% "refined4s-cats" % "0.13.0"
In build.sbt
,
libraryDependencies += "io.kevinlee" %% "refined4s-cats" % "0.13.0"
//> using dep "io.kevinlee::refined4s-cats:0.13.0"
In build.sbt
,
"io.kevinlee" %% "refined4s-cats" % "0.13.0"
or for Scala.js
"io.kevinlee" %%% "refined4s-cats" % "0.13.0"
In build.sbt
,
libraryDependencies += "io.kevinlee" %% "refined4s-cats" % "0.13.0"
or for Scala.js
libraryDependencies += "io.kevinlee" %%% "refined4s-cats" % "0.13.0"
//> using dep "io.kevinlee::refined4s-cats:0.13.0"
In build.sbt
,
"io.kevinlee" %% "refined4s-circe" % "0.13.0"
In build.sbt
,
libraryDependencies += "io.kevinlee" %% "refined4s-circe" % "0.13.0"
//> using dep "io.kevinlee::refined4s-circe:0.13.0"
In build.sbt
,
"io.kevinlee" %% "refined4s-circe" % "0.13.0"
or for Scala.js
"io.kevinlee" %%% "refined4s-circe" % "0.13.0"
In build.sbt
,
libraryDependencies += "io.kevinlee" %% "refined4s-circe" % "0.13.0"
or for Scala.js
libraryDependencies += "io.kevinlee" %%% "refined4s-circe" % "0.13.0"
//> using dep "io.kevinlee::refined4s-circe:0.13.0"
In build.sbt
,
"io.kevinlee" %% "refined4s-pureconfig" % "0.13.0"
In build.sbt
,
libraryDependencies += "io.kevinlee" %% "refined4s-pureconfig" % "0.13.0"
//> using dep "io.kevinlee::refined4s-pureconfig:0.13.0"
In build.sbt
,
"io.kevinlee" %% "refined4s-pureconfig" % "0.13.0"
or for Scala.js
"io.kevinlee" %%% "refined4s-pureconfig" % "0.13.0"
In build.sbt
,
libraryDependencies += "io.kevinlee" %% "refined4s-pureconfig" % "0.13.0"
or for Scala.js
libraryDependencies += "io.kevinlee" %%% "refined4s-pureconfig" % "0.13.0"
//> using dep "io.kevinlee::refined4s-pureconfig:0.13.0"
In build.sbt
,
"io.kevinlee" %% "refined4s-doobie-ce2" % "0.13.0"
In build.sbt
,
libraryDependencies += "io.kevinlee" %% "refined4s-doobie-ce2" % "0.13.0"
//> using dep "io.kevinlee::refined4s-doobie-ce2:0.13.0"
In build.sbt
,
"io.kevinlee" %% "refined4s-doobie-ce2" % "0.13.0"
or for Scala.js
"io.kevinlee" %%% "refined4s-doobie-ce2" % "0.13.0"
In build.sbt
,
libraryDependencies += "io.kevinlee" %% "refined4s-doobie-ce2" % "0.13.0"
or for Scala.js
libraryDependencies += "io.kevinlee" %%% "refined4s-doobie-ce2" % "0.13.0"
//> using dep "io.kevinlee::refined4s-doobie-ce2:0.13.0"
In build.sbt
,
"io.kevinlee" %% "refined4s-doobie-ce3" % "0.13.0"
In build.sbt
,
libraryDependencies += "io.kevinlee" %% "refined4s-doobie-ce3" % "0.13.0"
//> using dep "io.kevinlee::refined4s-doobie-ce3:0.13.0"
In build.sbt
,
"io.kevinlee" %% "refined4s-doobie-ce3" % "0.13.0"
or for Scala.js
"io.kevinlee" %%% "refined4s-doobie-ce3" % "0.13.0"
In build.sbt
,
libraryDependencies += "io.kevinlee" %% "refined4s-doobie-ce3" % "0.13.0"
or for Scala.js
libraryDependencies += "io.kevinlee" %%% "refined4s-doobie-ce3" % "0.13.0"
//> using dep "io.kevinlee::refined4s-doobie-ce3:0.13.0"
In build.sbt
,
"io.kevinlee" %% "refined4s-extras-render" % "0.13.0"
In build.sbt
,
libraryDependencies += "io.kevinlee" %% "refined4s-extras-render" % "0.13.0"
//> using dep "io.kevinlee::refined4s-extras-render:0.13.0"
In build.sbt
,
"io.kevinlee" %% "refined4s-extras-render" % "0.13.0"
or for Scala.js
"io.kevinlee" %%% "refined4s-extras-render" % "0.13.0"
In build.sbt
,
libraryDependencies += "io.kevinlee" %% "refined4s-extras-render" % "0.13.0"
or for Scala.js
libraryDependencies += "io.kevinlee" %%% "refined4s-extras-render" % "0.13.0"
//> using dep "io.kevinlee::refined4s-extras-render:0.13.0"
In build.sbt
,
"io.kevinlee" %% "refined4s-core" % "0.13.0",
"io.kevinlee" %% "refined4s-cats" % "0.13.0",
"io.kevinlee" %% "refined4s-circe" % "0.13.0",
"io.kevinlee" %% "refined4s-pureconfig" % "0.13.0",
"io.kevinlee" %% "refined4s-doobie-ce2" % "0.13.0", // Use either refined4s-doobie-ce2
"io.kevinlee" %% "refined4s-doobie-ce3" % "0.13.0", // OR refined4s-doobie-ce3
"io.kevinlee" %% "refined4s-extras-render" % "0.13.0",
In build.sbt
,
libraryDependencies ++= Seq(
"io.kevinlee" %% "refined4s-core" % "0.13.0",
"io.kevinlee" %% "refined4s-cats" % "0.13.0",
"io.kevinlee" %% "refined4s-circe" % "0.13.0",
"io.kevinlee" %% "refined4s-pureconfig" % "0.13.0",
"io.kevinlee" %% "refined4s-doobie-ce2" % "0.13.0", // Use either refined4s-doobie-ce2
"io.kevinlee" %% "refined4s-doobie-ce3" % "0.13.0", // OR refined4s-doobie-ce3
"io.kevinlee" %% "refined4s-extras-render" % "0.13.0",
)
//> using dep "io.kevinlee::refined4s-core:0.13.0"
//> using dep "io.kevinlee::refined4s-cats:0.13.0"
//> using dep "io.kevinlee::refined4s-circe:0.13.0"
//> using dep "io.kevinlee::refined4s-pureconfig:0.13.0"
//> using dep "io.kevinlee::refined4s-doobie-ce2:0.13.0" // Use either refined4s-doobie-ce2
//> using dep "io.kevinlee::refined4s-doobie-ce3:0.13.0" // OR refined4s-doobie-ce3
//> using dep "io.kevinlee::refined4s-extras-render:0.13.0"
In build.sbt
,
"io.kevinlee" %% "refined4s-core" % "0.13.0",
"io.kevinlee" %% "refined4s-cats" % "0.13.0",
"io.kevinlee" %% "refined4s-circe" % "0.13.0",
"io.kevinlee" %% "refined4s-pureconfig" % "0.13.0",
"io.kevinlee" %% "refined4s-doobie-ce2" % "0.13.0", // Use either refined4s-doobie-ce2
"io.kevinlee" %% "refined4s-doobie-ce3" % "0.13.0", // OR refined4s-doobie-ce3
"io.kevinlee" %% "refined4s-extras-render" % "0.13.0",
or for Scala.js
"io.kevinlee" %%% "refined4s-core" % "0.13.0",
"io.kevinlee" %%% "refined4s-cats" % "0.13.0",
"io.kevinlee" %%% "refined4s-circe" % "0.13.0",
"io.kevinlee" %%% "refined4s-pureconfig" % "0.13.0",
"io.kevinlee" %%% "refined4s-doobie-ce2" % "0.13.0", // Use either refined4s-doobie-ce2
"io.kevinlee" %%% "refined4s-doobie-ce3" % "0.13.0", // OR refined4s-doobie-ce3
"io.kevinlee" %%% "refined4s-extras-render" % "0.13.0",
In build.sbt
,
libraryDependencies ++= Seq(
"io.kevinlee" %% "refined4s-core" % "0.13.0",
"io.kevinlee" %% "refined4s-cats" % "0.13.0",
"io.kevinlee" %% "refined4s-circe" % "0.13.0",
"io.kevinlee" %% "refined4s-pureconfig" % "0.13.0",
"io.kevinlee" %% "refined4s-doobie-ce2" % "0.13.0", // Use either refined4s-doobie-ce2
"io.kevinlee" %% "refined4s-doobie-ce3" % "0.13.0", // OR refined4s-doobie-ce3
"io.kevinlee" %% "refined4s-extras-render" % "0.13.0",
)
or for Scala.js
libraryDependencies ++= Seq(
"io.kevinlee" %%% "refined4s-core" % "0.13.0",
"io.kevinlee" %%% "refined4s-cats" % "0.13.0",
"io.kevinlee" %%% "refined4s-circe" % "0.13.0",
"io.kevinlee" %%% "refined4s-pureconfig" % "0.13.0",
"io.kevinlee" %%% "refined4s-doobie-ce2" % "0.13.0", // Use either refined4s-doobie-ce2
"io.kevinlee" %%% "refined4s-doobie-ce3" % "0.13.0", // OR refined4s-doobie-ce3
"io.kevinlee" %%% "refined4s-extras-render" % "0.13.0",
)
//> using dep "io.kevinlee::refined4s-core:0.13.0"
//> using dep "io.kevinlee::refined4s-cats:0.13.0"
//> using dep "io.kevinlee::refined4s-circe:0.13.0"
//> using dep "io.kevinlee::refined4s-pureconfig:0.13.0"
//> using dep "io.kevinlee::refined4s-doobie-ce2:0.13.0" // Use either refined4s-doobie-ce2
//> using dep "io.kevinlee::refined4s-doobie-ce3:0.13.0" // OR refined4s-doobie-ce3
//> using dep "io.kevinlee::refined4s-extras-render:0.13.0"
refined4s
?Given the following methods
def hello(name: String): Unit = println(s"Hello $name")
def sendEmail(email: String): Unit = {
println(s"Sending email to [email address: $email]")
// ... send email
}