-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reformatted. Relaxed upper bounds on build dependencies. Use new .github workflows.
- Loading branch information
1 parent
4208406
commit 8616628
Showing
33 changed files
with
3,189 additions
and
2,568 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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 @@ | ||
@byteverse/l3c |
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,11 @@ | ||
name: build | ||
on: | ||
pull_request: | ||
branches: | ||
- "*" | ||
|
||
jobs: | ||
call-workflow: | ||
uses: byteverse/.github/.github/workflows/build-matrix.yaml@main | ||
with: | ||
cabal-file: ip.cabal |
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,10 @@ | ||
name: release | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
call-workflow: | ||
uses: byteverse/.github/.github/workflows/release.yaml@main | ||
secrets: inherit |
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,3 +1,4 @@ | ||
.vscode/ | ||
*.aux | ||
cabal-dev | ||
.cabal-sandbox | ||
|
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,102 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) | ||
and this project adheres to the [Haskell Package Versioning Policy](https://pvp.haskell.org/). | ||
|
||
## 1.7.8 -- 2024-03-01 | ||
|
||
* Update package metadata. | ||
* Relaxed upper bounds on dependencies. | ||
|
||
## 1.7.7 -- 2023-08-24 | ||
|
||
* Add `isSubsetOf` for `IPv4` and `IPv6` ranges. | ||
|
||
## 1.7.6 -- 2022-10-07 | ||
|
||
* Bump upper bound on `text` to `< 2.1`. | ||
* Add `Hashable` instances for `IP` and `IPv6`. | ||
|
||
## 1.7.5 -- 2022-07-28 | ||
|
||
* Add `boundedBuilderOctetsBE` and `boundedBuilderOctetsLE` to `Net.IPv4`. | ||
* Make doctests work again. Requires `doctest-0.20` or higher. | ||
* Bump upper bound on `attoparsec` to `< 0.15`. | ||
* Bump upper bound on `hashable` to `< 1.5`. | ||
* Derive `Generic` for `Net.IPv6.IPv6`. | ||
* Bump lower bound on `wide-word` to `>= 0.1.1.2`. | ||
* Add compatibility with GHC 9.2.3. | ||
|
||
## 1.7.4 -- 2021-12-28 | ||
|
||
* Add `decodeUtf8Bytes` to `Net.IP`. | ||
* Fix IPv4 octet overflow bug (#74) | ||
|
||
## 1.7.3 -- 2021-01-22 | ||
|
||
* Export `decodeOctets` from `Net.Mac`. | ||
* Add `encodeShort` to `Net.Mac`. | ||
|
||
## 1.7.2 -- 2020-05-30 | ||
* Fix bug in `doctest` documentation | ||
* Bump upper bound on `aeson`: (< 1.5) -> (< 1.6) | ||
|
||
## 1.7.1 -- 2020-01-22 | ||
* Deprecate 'decodeBytes' in favor of 'decodeOctets'. | ||
* Add `Bytes`-oriented encode and decode functions to `Net.Mac`: | ||
`boundedBuilderUtf8`, `decodeUtf8Bytes`, and `parserUtf8Bytes`. | ||
* Add `parserRangeUtf8Bytes` and `parserRangeUtf8BytesLenient` to | ||
both `Net.IPv4` and `Net.IPv6` modules. | ||
|
||
## 1.7.0 -- 2019-11-05 | ||
* Add `Data` instances for all types. | ||
* Add `Ix` instances for all address types. | ||
* Add missing `ToJSON`/`FromJSON` instances for `IPv6Range`. | ||
* Remove `Num`, `Integral`, and `Real` instances from `IPv6`. | ||
* Remove `Bits` instance for `IPv4Range`. | ||
* Switch to derived `Bits` instance for `IPv4. | ||
* Remove old spec test for IPv4 Bits laws, instead use | ||
quickcheck-classes. | ||
* Bump exclusive upper bound on small-bytearray-builder | ||
|
||
## 1.6.0 -- 2019-09-30 | ||
* Provide decode functions for decoding from `ShortText` and | ||
from `Bytes`. These two are implemented internally using | ||
the same function. | ||
* Dependency on `bytesmith` effectively restricts users to | ||
GHC 8.6 and up. Since GHC 8.8 is about to be released, | ||
this is deemed an acceptable cost. | ||
* Require cabal version 2.2 so that leading commas are accepted | ||
in dependencies lists. | ||
|
||
## 1.5.1 -- 2019-07-29 | ||
* Allow building with primitive-0.7. | ||
* Add more doctests to Net.IP. | ||
* Add to Net.IP: `isIPv4` and `isIPv6`. | ||
* Bump lower bound on primitive from 0.6 to 0.6.4. | ||
* Bump upper bound on hashable from < 1.3. to < 1.4. | ||
|
||
## 1.5.0 -- 2019-03-23 | ||
* Implement `IPv6` using `wide-word`'s `Word128`. (This is a breaking change.) | ||
|
||
## 1.4.2.1 -- 2019-03-18 | ||
* Docfix for `Net.IPv4.toList` | ||
|
||
## 1.4.2 -- 2019-03-14 | ||
* Fix existing `spec` test suite. | ||
* 100% haddock coverage, along with significantly more doctest coverage. | ||
* Add `Net.IPv4.localhost` and `Net.IPv6.localhost`, aliases for `loopback`. | ||
|
||
## 1.4.1 -- 2018-08-19 | ||
* Add `Enum` and `Bounded` instances for `Mac`. | ||
* Add `NFData` instances for all types. | ||
|
||
## 1.4.0 -- 2018-07-18 | ||
* Combine `Net.IPv4` and `Net.IPv4.Range` modules. | ||
* Add `IPv6Range`. | ||
* Drop support for older aeson. | ||
* Add `Enum` instance for `IPv6`. | ||
|
||
## 1.2.1 -- 2018-05-10 | ||
* Added a `Prim` instance for `Mac`. |
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,2 @@ | ||
packages: . | ||
tests: True |
This file was deleted.
Oops, something went wrong.
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,51 @@ | ||
# Number of spaces per indentation step | ||
indentation: 2 | ||
|
||
# Max line length for automatic line breaking | ||
column-limit: 200 | ||
|
||
# Styling of arrows in type signatures (choices: trailing, leading, or leading-args) | ||
function-arrows: trailing | ||
|
||
# How to place commas in multi-line lists, records, etc. (choices: leading or trailing) | ||
comma-style: leading | ||
|
||
# Styling of import/export lists (choices: leading, trailing, or diff-friendly) | ||
import-export-style: leading | ||
|
||
# Whether to full-indent or half-indent 'where' bindings past the preceding body | ||
indent-wheres: false | ||
|
||
# Whether to leave a space before an opening record brace | ||
record-brace-space: true | ||
|
||
# Number of spaces between top-level declarations | ||
newlines-between-decls: 1 | ||
|
||
# How to print Haddock comments (choices: single-line, multi-line, or multi-line-compact) | ||
haddock-style: multi-line | ||
|
||
# How to print module docstring | ||
haddock-style-module: null | ||
|
||
# Styling of let blocks (choices: auto, inline, newline, or mixed) | ||
let-style: auto | ||
|
||
# How to align the 'in' keyword with respect to the 'let' keyword (choices: left-align, right-align, or no-space) | ||
in-style: right-align | ||
|
||
# Whether to put parentheses around a single constraint (choices: auto, always, or never) | ||
single-constraint-parens: always | ||
|
||
# Output Unicode syntax (choices: detect, always, or never) | ||
unicode: never | ||
|
||
# Give the programmer more choice on where to insert blank lines | ||
respectful: true | ||
|
||
# Fixity information for operators | ||
fixities: [] | ||
|
||
# Module reexports Fourmolu should know about | ||
reexports: [] | ||
|
Oops, something went wrong.