-
Notifications
You must be signed in to change notification settings - Fork 7
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
Prepare 0.3.0.0 release #6
Merged
+82
−22
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
-} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'. | ||
-} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'. | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This turns out to be difficult to implement in
headroom
so I edited this part of the module header manually so we can releaseco-log-core