Skip to content

Commit 10ad631

Browse files
authored
Prepare 0.3.0.0 release (#6)
* Prepare 0.3.0.0 release * Update copyrights in modules
1 parent a4dd978 commit 10ad631

File tree

8 files changed

+82
-22
lines changed

8 files changed

+82
-22
lines changed

.headroom.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## This is the configuration file for Headroom.
2+
## See https://github.com/vaclavsvejcar/headroom for more details.
3+
version: 0.4.0.0
4+
5+
run-mode: replace
6+
7+
source-paths:
8+
- src/
9+
10+
excluded-paths: []
11+
12+
template-paths:
13+
- https://raw.githubusercontent.com/co-log/.github/chshersh/2-Headroom-template/headroom-templates/haskell.mustache
14+
15+
variables:
16+
author: Co-Log
17+
18+
_haskell_module_copyright: "(c) {{ _current_year }} {{ author }}"
19+
20+
license-headers:
21+
haskell:
22+
put-after: ["^{-#"]
23+
margin-bottom-code: 1
24+
margin-top-code: 1
25+
block-comment:
26+
starts-with: ^{- \|
27+
ends-with: (?<!#)-}$
28+
29+
post-process:
30+
update-copyright:
31+
enabled: true
32+
config:
33+
selected-authors-only: ["{{ author }}"]

CHANGELOG.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,21 @@
33
`co-log-core` uses [PVP Versioning][1].
44
The change log is available [on GitHub][2].
55

6-
## 0.2.1.2<M> <d>, 2021
6+
## 0.3.0.0Oct 8, 2021
77

8-
* [#223](https://github.com/kowainik/co-log/pulls/223):
8+
* [#223](https://github.com/co-log/co-log/pull/223):
99
Support GHC-9.0.1.
10+
* [#176](https://github.com/co-log/co-log/issues/176):
11+
Add `logFlush` handle to flush the given
12+
13+
__Breaking change:__ All `withLog*File` functions how flush handle
14+
after logging each message. Now you'll see logs in the file
15+
immediately.
16+
17+
__Migration guide:__ If you rely on the previous behaviour, then
18+
copy-paste corresponding functions and remove flushing.
19+
20+
* Update maintainers information to the new Co-Log organization.
1021

1122
## 0.2.1.1 — Apr 18, 2020
1223

co-log-core.cabal

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cabal-version: 2.4
22
name: co-log-core
3-
version: 0.2.1.2
3+
version: 0.3.0.0
44
synopsis: Composable Contravariant Comonadic Logging Library
55
description:
66
This package provides core types and functions to work with the @LogAction@ data type which is both simple and powerful.
@@ -27,7 +27,7 @@ license: MPL-2.0
2727
license-file: LICENSE
2828
author: Dmitrii Kovanikov
2929
maintainer: Kowainik <[email protected]>
30-
copyright: 2018-2020 Kowainik
30+
copyright: 2018-2020 Kowainik, 2021 Co-Log
3131
category: Logging, Contravariant, Comonad
3232
build-type: Simple
3333
stability: stable
@@ -36,8 +36,8 @@ extra-doc-files: CHANGELOG.md
3636
tested-with: GHC == 8.2.2
3737
GHC == 8.4.4
3838
GHC == 8.6.5
39-
GHC == 8.8.3
40-
GHC == 8.10.1
39+
GHC == 8.8.4
40+
GHC == 8.10.7
4141
GHC == 9.0.1
4242

4343
source-repository head

src/Colog/Core.hs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{- |
2-
Copyright: (c) 2018-2020 Kowainik
3-
SPDX-License-Identifier: MPL-2.0
4-
Maintainer: Kowainik <[email protected]>
2+
Module : Colog.Core
3+
Copyright : (c) 2018-2020 Kowainik, 2021 Co-Log
4+
SPDX-License-Identifier : MPL-2.0
5+
Maintainer : Co-Log <[email protected]>
6+
Stability : Stable
7+
Portability : Portable
58
69
Exports all core functionality. @co-log-core@ is a lightweight package that
710
defines only core data type and various combinators to work with it.
@@ -25,6 +28,7 @@ The package has the following structure:
2528
* __"Colog.Core.IO":__ basic loggers that work with 'Control.Monad.IO.Class.MonadIO' and 'String'.
2629
* __"Colog.Core.Severity":__ logger severity.
2730
-}
31+
2832
module Colog.Core
2933
( module Colog.Core.Action
3034
, module Colog.Core.Class

src/Colog/Core/Action.hs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66
{-# LANGUAGE UndecidableInstances #-}
77

88
{- |
9-
Copyright: (c) 2018-2020 Kowainik
10-
SPDX-License-Identifier: MPL-2.0
11-
Maintainer: Kowainik <[email protected]>
9+
Module : Colog.Core.Action
10+
Copyright : (c) 2018-2020 Kowainik, 2021 Co-Log
11+
SPDX-License-Identifier : MPL-2.0
12+
Maintainer : Co-Log <[email protected]>
13+
Stability : Stable
14+
Portability : Portable
1215
1316
Implements core data types and combinators for logging actions.
1417
-}

src/Colog/Core/Class.hs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,12 @@
33
{-# LANGUAGE Rank2Types #-}
44

55
{- |
6-
Copyright: (c) 2018-2020 Kowainik
7-
SPDX-License-Identifier: MPL-2.0
8-
Maintainer: Kowainik <[email protected]>
6+
Module : Colog.Core.Class
7+
Copyright : (c) 2018-2020 Kowainik, 2021 Co-Log
8+
SPDX-License-Identifier : MPL-2.0
9+
Maintainer : Co-Log <[email protected]>
10+
Stability : Stable
11+
Portability : Portable
912
1013
Provides type class for values that has access to 'LogAction'.
1114
-}

src/Colog/Core/IO.hs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{-# LANGUAGE CPP #-}
22

33
{- |
4-
Copyright: (c) 2018-2020 Kowainik
5-
SPDX-License-Identifier: MPL-2.0
6-
Maintainer: Kowainik <[email protected]>
4+
Module : Colog.Core.IO
5+
Copyright : (c) 2018-2020 Kowainik
6+
SPDX-License-Identifier : MPL-2.0
7+
Maintainer : Co-Log <[email protected]>
8+
Stability : Stable
9+
Portability : Portable
710
811
Introduces logging actions working in 'MonadIO'. These actions are very basic
912
and inefficient because they use the 'String' data type. If you don't want to
@@ -170,7 +173,7 @@ liftLogIO (LogAction action) = LogAction (liftIO . action)
170173
{- | This action can be used in combination with other actions to flush
171174
a handle every time you log anything.
172175
173-
@since x.x.x.x
176+
@since 0.3.0.0
174177
-}
175178
logFlush :: MonadIO m => Handle -> LogAction m a
176179
logFlush handle = LogAction $ const $ liftIO $ hFlush handle

src/Colog/Core/Severity.hs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
{-# LANGUAGE PatternSynonyms #-}
22

33
{- |
4-
Copyright: (c) 2018-2020 Kowainik
5-
SPDX-License-Identifier: MPL-2.0
6-
Maintainer: Kowainik <[email protected]>
4+
Module : Colog.Core.Severity
5+
Copyright : (c) 2018-2020 Kowainik, 2021 Co-Log
6+
SPDX-License-Identifier : MPL-2.0
7+
Maintainer : Co-Log <[email protected]>
8+
Stability : Stable
9+
Portability : Portable
710
811
This module introduces 'Severity' data type for expressing how severe the
912
message is. Also, it contains useful functions and patterns for work with 'Severity'.

0 commit comments

Comments
 (0)