Skip to content

Commit

Permalink
Prepare 0.1.0.1 release
Browse files Browse the repository at this point in the history
Reformatted.
Added workflows.
Updated package metadata.
  • Loading branch information
brianjosephmckeon authored Feb 6, 2024
1 parent 4c5194f commit bf864cf
Show file tree
Hide file tree
Showing 10 changed files with 117 additions and 94 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
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/
*.aux
cabal-dev
.cabal-sandbox
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Revision history for torsor

## 0.1.0.1 -- 2024-02-06

* Update package metadata.

## 0.1 -- 2017-10-23

* Initial release.
2 changes: 0 additions & 2 deletions Setup.hs

This file was deleted.

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: []

11 changes: 4 additions & 7 deletions src/Torsor.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE MultiParamTypeClasses #-}
{-# LANGUAGE FunctionalDependencies #-}

{- | The typeclasses provides in this module are equivalent
Expand All @@ -7,11 +6,10 @@
instead of type families in order to improved error
messages.
-}

module Torsor
( Additive(..)
, Torsor(..)
, Scaling(..)
( Additive (..)
, Torsor (..)
, Scaling (..)
) where

import Data.Int
Expand All @@ -23,7 +21,7 @@ class Additive v where
plus :: v -> v -> v
minus :: v -> v -> v

class Additive v => Torsor p v | p -> v where
class (Additive v) => Torsor p v | p -> v where
add :: v -> p -> p
difference :: p -> p -> v

Expand Down Expand Up @@ -172,4 +170,3 @@ instance Torsor Int8 Int8 where

instance Scaling Int8 Int8 where
scale = (*)

66 changes: 0 additions & 66 deletions stack.yaml

This file was deleted.

46 changes: 27 additions & 19 deletions torsor.cabal
Original file line number Diff line number Diff line change
@@ -1,24 +1,32 @@
name: torsor
version: 0.1
synopsis: Torsor Typeclass
description: Torsor Typeclass
homepage: https://github.com/andrewthad/torsor#readme
license: BSD3
license-file: LICENSE
author: Andrew Martin
maintainer: [email protected]
copyright: 2017 Andrew Martin
category: Web
build-type: Simple
extra-source-files: README.md
cabal-version: >=1.10
cabal-version: 2.4
name: torsor
version: 0.1.0.1
synopsis: Torsor Typeclass
description: Torsor Typeclass.
homepage: https://github.com/byteverse/torsor
bug-reports: https://github.com/byteverse/torsor/issues
license: BSD-3-Clause
license-file: LICENSE
author: Andrew Martin
maintainer: [email protected]
copyright: 2017 Andrew Martin
category: Web
build-type: Simple
extra-doc-files:
CHANGELOG.md
README.md

common build-settings
default-language: Haskell2010
ghc-options: -Wall -Wunused-packages

library
hs-source-dirs: src
import: build-settings
hs-source-dirs: src
exposed-modules: Torsor
build-depends: base >= 4.7 && < 5
default-language: Haskell2010
build-depends: base >=4.7 && <5
ghc-options: -O2

source-repository head
type: git
location: https://github.com/andrewthad/torsor
type: git
location: git://github.com/byteverse/torsor.git

0 comments on commit bf864cf

Please sign in to comment.