Skip to content

Commit 69af0b3

Browse files
authored
Improve example in README.md (#33)
1 parent d113e5d commit 69af0b3

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

README.md

+9-6
Original file line numberDiff line numberDiff line change
@@ -48,19 +48,22 @@ In order to start using `colourista` in your project, you will need to set it up
4848

4949
```haskell
5050
build-depends: base ^>= 4.14
51-
, colourista ^>= 0.0
51+
, colourista ^>= 0.1
52+
, ...
5253
```
5354
2. In the module where you wish to use the colourful output with `colourista`,
5455
you should add the import:
5556

5657
```haskell
57-
import Colourista (successMessage)
58+
import Colourista (...)
5859
```
59-
3. Now you can use the functions from the library:
60+
3. Now you can use the functions from the library. For example:
6061

6162
```haskell
63+
import qualified Data.Text as Text
64+
6265
main :: IO ()
63-
main = successMessage "All set up!"
66+
main = successMessage $ Text.pack "All set up!"
6467
```
6568
### Usage with Stack
6669

@@ -70,8 +73,8 @@ file:
7073

7174
```yaml
7275
extra-deps:
73-
- colourista-0.0.0.0
74-
- ansi-terminal-0.10
76+
- colourista-0.1.0.0
77+
- ...
7578
```
7679
7780
Then you can add it as a dependency in your `package.yaml` file as usual:

0 commit comments

Comments
 (0)