Skip to content

Commit

Permalink
Merge pull request #598 from kevin-lee/update-docs
Browse files Browse the repository at this point in the history
Update: docs - getting started - add how to get for scala-cli
  • Loading branch information
kevin-lee committed Nov 28, 2023
2 parents ba5f0f2 + 7b4c292 commit bec6265
Showing 1 changed file with 91 additions and 8 deletions.
99 changes: 91 additions & 8 deletions docs/latest/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,80 @@ A set of type-classes and utils for functional effect libraries (i.e. Cats Effe
Why Effectie? Please read ["Why?"](#why) section.

## Getting Started
### For Cats Effect
### For Cats Effect 3

<Tabs
groupId="cats-effect3"
defaultValue="cats-effect3-sbt"
values={[
{label: 'sbt', value: 'cats-effect3-sbt'},
{label: 'sbt (with libraryDependencies)', value: 'cats-effect3-sbt-lib'},
{label: 'scala-cli', value: 'cats-effect3-scala-cli'},
]}>
<TabItem value="cats-effect3-sbt">

In `build.sbt`,

```scala
"io.kevinlee" %% "effectie-cats-effect3" % "@VERSION@"
```

</TabItem>

<TabItem value="cats-effect3-sbt-lib">

In `build.sbt`,

```scala
libraryDependencies += "io.kevinlee" %% "effectie-cats-effect3" % "@VERSION@"
```

</TabItem>

<TabItem value="cats-effect3-scala-cli">

```scala
//> using dep "io.kevinlee::effectie-cats-effect3:@VERSION@"
```

</TabItem>
</Tabs>


### For Cats Effect 2

<Tabs
groupId="cats-effect"
defaultValue="cats-effect"
groupId="cats-effect2"
defaultValue="cats-effect2-sbt"
values={[
{label: 'Cats Effect 3', value: 'cats-effect3'},
{label: 'Cats Effect 2', value: 'cats-effect'},
{label: 'sbt', value: 'cats-effect2-sbt'},
{label: 'sbt (with libraryDependencies)', value: 'cats-effect2-sbt-lib'},
{label: 'scala-cli', value: 'cats-effect2-scala-cli'},
]}>
<TabItem value="cats-effect3">
<TabItem value="cats-effect2-sbt">

In `build.sbt`,

```scala
libraryDependencies += "io.kevinlee" %% "effectie-cats-effect3" % "@VERSION@"
"io.kevinlee" %% "effectie-cats-effect2" % "@VERSION@"
```

</TabItem>

<TabItem value="cats-effect">
<TabItem value="cats-effect2-sbt-lib">

In `build.sbt`,

```scala
libraryDependencies += "io.kevinlee" %% "effectie-cats-effect2" % "@VERSION@"
```

</TabItem>

<TabItem value="cats-effect2-scala-cli">

```scala
//> using dep "io.kevinlee::effectie-cats-effect2:@VERSION@"
```

</TabItem>
Expand All @@ -61,12 +112,44 @@ For more details, check out [Effectie for Cats Effect](cats-effect2/cats-effect2

### For Monix

<Tabs
groupId="monix3"
defaultValue="monix3-sbt"
values={[
{label: 'sbt', value: 'monix3-sbt'},
{label: 'sbt (with libraryDependencies)', value: 'monix3-sbt-lib'},
{label: 'scala-cli', value: 'monix3-scala-cli'},
]}>
<TabItem value="monix3-sbt">

In `build.sbt`,

```scala
"io.kevinlee" %% "effectie-monix3" % "@VERSION@"
```

</TabItem>

<TabItem value="monix3-sbt-lib">

In `build.sbt`,

```scala
libraryDependencies += "io.kevinlee" %% "effectie-monix3" % "@VERSION@"
```

</TabItem>

<TabItem value="monix3-scala-cli">

```scala
//> using dep "io.kevinlee::effectie-monix3:@VERSION@"
```

</TabItem>
</Tabs>


For more details, check out [Effectie for Monix](monix3/monix3.md).


Expand Down

0 comments on commit bec6265

Please sign in to comment.