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

Update README.md #10

Merged
merged 5 commits into from
Nov 24, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 16 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Co-logo](https://user-images.githubusercontent.com/8126674/80955687-92f21a80-8df7-11ea-90d3-422dafdc8391.png)

[![GitHub CI](https://github.com/kowainik/co-log/workflows/CI/badge.svg)](https://github.com/kowainik/co-log/actions)
[![GitHub CI](https://github.com/co-log/co-log-core/workflows/CI/badge.svg)](https://github.com/kowainik/co-log/actions)
[![Hackage][hk-img-core]][hk-core]
[![Stackage LTS][lts-img-core]][lts-core]
[![MPL-2.0 license](https://img.shields.io/badge/license-MPL--2.0-blue.svg)](https://github.com/kowainik/co-log/blob/main/LICENSE)
Expand Down Expand Up @@ -30,18 +30,21 @@ will need to set it up with these steps:
2. To use this package, refer to the below example.

```haskell
module Colog.Core
( module Colog.Core.Action
, module Colog.Core.Class
, module Colog.Core.IO
, module Colog.Core.Severity
) where

import Colog.Core.Action
import Colog.Core.Class
import Colog.Core.IO
import Colog.Core.Severity
```
module Main (main) where

import Prelude hiding (log)

import Colog.Core (LogAction, logStringStdout, (<&))


app :: LogAction IO String -> IO ()
app log = do
log <& "Starting app..."
log <& "Finishing app..."

main :: IO ()
main = app logStringStdout
```


[hk-img-core]: https://img.shields.io/hackage/v/co-log-core.svg?logo=haskell
Expand Down