Skip to content

Commit

Permalink
Prepare 0.1.1.1 release
Browse files Browse the repository at this point in the history
Reformatted.
Added workflows.
Updated package metadata.
Removed redundant doctest suite.
  • Loading branch information
brianjosephmckeon authored Feb 1, 2024
1 parent c75b657 commit ba785df
Show file tree
Hide file tree
Showing 11 changed files with 300 additions and 253 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@byteverse/l3c
12 changes: 12 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: build
on:
pull_request:
branches:
- "*"

jobs:
call-workflow:
uses: byteverse/.github/.github/workflows/build.yaml@main
secrets: inherit
with:
release: false
12 changes: 12 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: release
on:
push:
tags:
- "*"

jobs:
call-workflow:
uses: byteverse/.github/.github/workflows/build.yaml@main
secrets: inherit
with:
release: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.vscode/
dist
dist-*
cabal-dev
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Revision history for base62

## 0.1.1.1 -- 2024-02-01

* Update package metadata.

## 0.1.1.0 -- 2023-08-08

* Add `shortText128`.
Expand Down
2 changes: 0 additions & 2 deletions Setup.hs

This file was deleted.

82 changes: 37 additions & 45 deletions base62.cabal
Original file line number Diff line number Diff line change
@@ -1,58 +1,50 @@
cabal-version: 2.2
name: base62
version: 0.1.1.0
synopsis: Base62 encoding and decoding
description:
Encode and decode using the base62 encoding scheme.
homepage: https://github.com/byteverse/base62
bug-reports: https://github.com/byteverse/base62/issues
license: BSD-3-Clause
license-file: LICENSE
author: Andrew Martin
maintainer: [email protected]
copyright: 2019 Andrew Martin
category: Data
extra-source-files: CHANGELOG.md
cabal-version: 2.2
name: base62
version: 0.1.1.1
synopsis: Base62 encoding and decoding
description: Encode and decode using the base62 encoding scheme.
homepage: https://github.com/byteverse/base62
bug-reports: https://github.com/byteverse/base62/issues
license: BSD-3-Clause
license-file: LICENSE
author: Andrew Martin
maintainer: [email protected]
copyright: 2019 Andrew Martin
category: Data
extra-doc-files: CHANGELOG.md

library
exposed-modules:
Data.Word.Base62
exposed-modules: Data.Word.Base62
build-depends:
, base >=4.17 && <5
, bytebuild >=0.3.4 && <0.4
, byteslice >=0.2 && <0.3
, bytestring >=0.11.4
, natural-arithmetic >=0.1 && <0.2
, primitive >=0.7 && <0.10
, text >=2.0.2
, text-short >=0.1.5
, wide-word >=0.1.0.8 && <0.2
hs-source-dirs: src
, base >=4.17 && <5
, bytebuild >=0.3.4 && <0.4
, byteslice >=0.2 && <0.3
, bytestring >=0.11.4 && <0.12
, natural-arithmetic >=0.1 && <0.2
, primitive >=0.7 && <0.10
, text >=2.0.2 && <2.1
, text-short >=0.1.5 && <0.2
, wide-word >=0.1.0.8 && <0.2

hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall -O2
ghc-options: -Wall -O2

test-suite test
default-language: Haskell2010
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Main.hs
build-depends:
, base >=4.12.0.0 && <5
, base >=4.12.0.0 && <5
, base62
, tasty
, tasty-quickcheck
, tasty-hunit
, byteslice
, primitive
, tasty
, tasty-hunit
, tasty-quickcheck
, wide-word

test-suite doctest
type: exitcode-stdio-1.0
hs-source-dirs: test
main-is: Doctest.hs
build-depends:
, base
, doctest >= 0.10
, base62
, wide-word
default-language: Haskell2010
source-repository head
type: git
location: git://github.com/byteverse/base62.git
51 changes: 51 additions & 0 deletions fourmolu.yaml
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: []

Loading

0 comments on commit ba785df

Please sign in to comment.