Skip to content

Commit

Permalink
Prepare 0.3.0.0 release (#6)
Browse files Browse the repository at this point in the history
* Prepare 0.3.0.0 release

* Update copyrights in modules
  • Loading branch information
chshersh authored Oct 27, 2021
1 parent a4dd978 commit 10ad631
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 22 deletions.
33 changes: 33 additions & 0 deletions .headroom.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## This is the configuration file for Headroom.
## See https://github.com/vaclavsvejcar/headroom for more details.
version: 0.4.0.0

run-mode: replace

source-paths:
- src/

excluded-paths: []

template-paths:
- https://raw.githubusercontent.com/co-log/.github/chshersh/2-Headroom-template/headroom-templates/haskell.mustache

variables:
author: Co-Log
email: [email protected]
_haskell_module_copyright: "(c) {{ _current_year }} {{ author }}"

license-headers:
haskell:
put-after: ["^{-#"]
margin-bottom-code: 1
margin-top-code: 1
block-comment:
starts-with: ^{- \|
ends-with: (?<!#)-}$

post-process:
update-copyright:
enabled: true
config:
selected-authors-only: ["{{ author }}"]
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,21 @@
`co-log-core` uses [PVP Versioning][1].
The change log is available [on GitHub][2].

## 0.2.1.2<M> <d>, 2021
## 0.3.0.0Oct 8, 2021

* [#223](https://github.com/kowainik/co-log/pulls/223):
* [#223](https://github.com/co-log/co-log/pull/223):
Support GHC-9.0.1.
* [#176](https://github.com/co-log/co-log/issues/176):
Add `logFlush` handle to flush the given

__Breaking change:__ All `withLog*File` functions how flush handle
after logging each message. Now you'll see logs in the file
immediately.

__Migration guide:__ If you rely on the previous behaviour, then
copy-paste corresponding functions and remove flushing.

* Update maintainers information to the new Co-Log organization.

## 0.2.1.1 — Apr 18, 2020

Expand Down
8 changes: 4 additions & 4 deletions co-log-core.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 2.4
name: co-log-core
version: 0.2.1.2
version: 0.3.0.0
synopsis: Composable Contravariant Comonadic Logging Library
description:
This package provides core types and functions to work with the @LogAction@ data type which is both simple and powerful.
Expand All @@ -27,7 +27,7 @@ license: MPL-2.0
license-file: LICENSE
author: Dmitrii Kovanikov
maintainer: Kowainik <[email protected]>
copyright: 2018-2020 Kowainik
copyright: 2018-2020 Kowainik, 2021 Co-Log
category: Logging, Contravariant, Comonad
build-type: Simple
stability: stable
Expand All @@ -36,8 +36,8 @@ extra-doc-files: CHANGELOG.md
tested-with: GHC == 8.2.2
GHC == 8.4.4
GHC == 8.6.5
GHC == 8.8.3
GHC == 8.10.1
GHC == 8.8.4
GHC == 8.10.7
GHC == 9.0.1

source-repository head
Expand Down
10 changes: 7 additions & 3 deletions src/Colog/Core.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
{- |
Copyright: (c) 2018-2020 Kowainik
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <[email protected]>
Module : Colog.Core
Copyright : (c) 2018-2020 Kowainik, 2021 Co-Log
SPDX-License-Identifier : MPL-2.0
Maintainer : Co-Log <[email protected]>
Stability : Stable
Portability : Portable
Exports all core functionality. @co-log-core@ is a lightweight package that
defines only core data type and various combinators to work with it.
Expand All @@ -25,6 +28,7 @@ The package has the following structure:
* __"Colog.Core.IO":__ basic loggers that work with 'Control.Monad.IO.Class.MonadIO' and 'String'.
* __"Colog.Core.Severity":__ logger severity.
-}

module Colog.Core
( module Colog.Core.Action
, module Colog.Core.Class
Expand Down
9 changes: 6 additions & 3 deletions src/Colog/Core/Action.hs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@
{-# LANGUAGE UndecidableInstances #-}

{- |
Copyright: (c) 2018-2020 Kowainik
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <[email protected]>
Module : Colog.Core.Action
Copyright : (c) 2018-2020 Kowainik, 2021 Co-Log
SPDX-License-Identifier : MPL-2.0
Maintainer : Co-Log <[email protected]>
Stability : Stable
Portability : Portable
Implements core data types and combinators for logging actions.
-}
Expand Down
9 changes: 6 additions & 3 deletions src/Colog/Core/Class.hs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@
{-# LANGUAGE Rank2Types #-}

{- |
Copyright: (c) 2018-2020 Kowainik
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <[email protected]>
Module : Colog.Core.Class
Copyright : (c) 2018-2020 Kowainik, 2021 Co-Log
SPDX-License-Identifier : MPL-2.0
Maintainer : Co-Log <[email protected]>
Stability : Stable
Portability : Portable
Provides type class for values that has access to 'LogAction'.
-}
Expand Down
11 changes: 7 additions & 4 deletions src/Colog/Core/IO.hs
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{-# LANGUAGE CPP #-}

{- |
Copyright: (c) 2018-2020 Kowainik
SPDX-License-Identifier: MPL-2.0
Maintainer: Kowainik <[email protected]>
Module : Colog.Core.IO
Copyright : (c) 2018-2020 Kowainik
SPDX-License-Identifier : MPL-2.0
Maintainer : Co-Log <[email protected]>
Stability : Stable
Portability : Portable
Introduces logging actions working in 'MonadIO'. These actions are very basic
and inefficient because they use the 'String' data type. If you don't want to
Expand Down Expand Up @@ -170,7 +173,7 @@ liftLogIO (LogAction action) = LogAction (liftIO . action)
{- | This action can be used in combination with other actions to flush
a handle every time you log anything.
@since x.x.x.x
@since 0.3.0.0
-}
logFlush :: MonadIO m => Handle -> LogAction m a
logFlush handle = LogAction $ const $ liftIO $ hFlush handle
Expand Down
9 changes: 6 additions & 3 deletions src/Colog/Core/Severity.hs
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{-# LANGUAGE PatternSynonyms #-}

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

0 comments on commit 10ad631

Please sign in to comment.