Skip to content
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

Re-license AGPLv3 #272

Merged
merged 6 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions .headroom.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
## This is the configuration file for Headroom.
## See https://github.com/vaclavsvejcar/headroom for more details.

## Defines with which version of Headroom this configuration is compatible.
## Headroom uses this field to detect whether your configuration doesn't need
## any manual migration steps in case that it's older than your current Headroom
## version. You don't need to touch this field unless explicitly stated in
## migration guide during upgrading Headroom to new version.
version: 0.4.3.0

## Defines the behaviour how to handle license headers, possible options are:
##
## - add = (default) adds license header to files with no existing header
## (same as '-a|--add-headers' command line argument)
## - drop = drops existing license header from without replacement
## (same as '-d|--drop-headers' command line argument)
## - replace = adds or replaces existing license header
## (same as '-r|--replace-headers' command line argument)
run-mode: add

## Paths to source code files (either files or directories),
## same as '-s|--source-path=PATH' command line argument (can be used multiple
## times for more than one path).
source-paths:
- app
- src
- test

## If set to 'true', Headroom tries to detect whether any VCS (like GIT) is used
## for current project and if yes, it loads rules for ignored files and excludes
## all source paths that matches these rules.
exclude-ignored-paths: false

## Paths to template files (either files or directories),
## same as '-t|--template-path=PATH' command line argument (can be used multiple
## times for more than one path).
template-paths:
- headroom-templates

## Variables (key-value) to replace in templates,
## same as '-v|--variable="KEY=VALUE"' command line argument (can be used
## multiple times for more than one path).
variables:
author: Patrick Brisbin
email: [email protected]
project: Restyler
year: "2024"

license-headers:
haskell:
line-comment:
prefixed-by: "^--"
661 changes: 661 additions & 0 deletions COPYING

Large diffs are not rendered by default.

22 changes: 0 additions & 22 deletions LICENSE

This file was deleted.

11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,8 @@ just test

## LICENSE

Restyled is source-available, [Commons Claused][cc] licensed. For a detailed
description of another project's rationale for this licensing model, one with
which I agree, see [here][level].

[cc]: https://commonsclause.com/
[level]: https://web.archive.org/web/20181120030157/https://leveljournal.com/source-available-licensing
This project is licensed AGPLv3. See [COPYING](./COPYING).

---

[CHANGELOG](./CHANGELOG.md) | [LICENSE](./LICENSE) | [CONTRIBUTING][]

[contributing]: https://github.com/restyled-io/restyled.io/wiki/Contributing-to-Restyled
[CHANGELOG](./CHANGELOG.md)
8 changes: 8 additions & 0 deletions app/Main.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-- |
--
-- Module : Main
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Main
( main
) where
Expand Down
8 changes: 8 additions & 0 deletions headroom-templates/haskell.mustache
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
-- |
--
-- Module : {{{ _haskell_module_name }}}
-- Copyright : (c) {{ _current_year }} {{ author }}
-- License : AGPL-3
-- Maintainer : {{ email }}
-- Stability : experimental
-- Portability : POSIX
4 changes: 4 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ lint:
watch:
stack build --fast --pedantic --test --file-watch

headroom:
stack exec -- headroom run -r
stack exec -- fourmolu -i app src test

# aws := "aws --profile restyled-ci"

# doc_bucket := `
Expand Down
4 changes: 2 additions & 2 deletions package.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: restyler
version: 0.4.3.2
license: MIT
version: 0.5.0.0
license: AGPL-3

language: GHC2021

Expand Down
5 changes: 2 additions & 3 deletions restyler.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ cabal-version: 1.12
-- see: https://github.com/sol/hpack

name: restyler
version: 0.4.3.2
license: MIT
license-file: LICENSE
version: 0.5.0.0
license: AGPL-3
build-type: Simple

library
Expand Down
7 changes: 7 additions & 0 deletions src/GHC/Generics/Selectors.hs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
-- | Function for getting the names of fields in a type
--
-- <https://stackoverflow.com/questions/27815489/is-it-possible-to-list-the-names-and-types-of-fields-in-a-record-data-type-that>
--
-- Module : GHC.Generics.Selectors
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module GHC.Generics.Selectors
( Selectors (..)
) where
Expand Down
8 changes: 8 additions & 0 deletions src/Restyler/AnnotatedException.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-- |
--
-- Module : Restyler.AnnotatedException
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Restyler.AnnotatedException
( checkpointCallStack
, AnnotatedException (..)
Expand Down
8 changes: 8 additions & 0 deletions src/Restyler/App.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{-# LANGUAGE DerivingVia #-}

-- |
--
-- Module : Restyler.App
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Restyler.App
( AppT
, runAppT
Expand Down
8 changes: 8 additions & 0 deletions src/Restyler/CLI.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-- |
--
-- Module : Restyler.CLI
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Restyler.CLI
( main
) where
Expand Down
7 changes: 7 additions & 0 deletions src/Restyler/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
-- - <https://reasonablypolymorphic.com/blog/higher-kinded-data/>
-- - <https://chrispenner.ca/posts/hkd-options>
-- - <https://hackage.haskell.org/package/barbies>
--
-- Module : Restyler.Config
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Restyler.Config
( Config (..)
, ConfigError (..)
Expand Down
8 changes: 8 additions & 0 deletions src/Restyler/Config/ChangedPaths.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-- |
--
-- Module : Restyler.Config.ChangedPaths
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Restyler.Config.ChangedPaths
( ChangedPathsConfig (..)
, MaximumChangedPathsOutcome (..)
Expand Down
8 changes: 8 additions & 0 deletions src/Restyler/Config/CommitTemplate.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-- |
--
-- Module : Restyler.Config.CommitTemplate
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Restyler.Config.CommitTemplate
( CommitTemplate (..)
, CommitTemplateInputs (..)
Expand Down
8 changes: 8 additions & 0 deletions src/Restyler/Config/ExpectedKeys.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-- |
--
-- Module : Restyler.Config.ExpectedKeys
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Restyler.Config.ExpectedKeys
( genericParseJSONValidated
, validateObjectKeys
Expand Down
7 changes: 7 additions & 0 deletions src/Restyler/Config/Glob.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{-# LANGUAGE AllowAmbiguousTypes #-}

-- | Small wrapper over @'System.FilePath.Glob.Pattern'@
--
-- Module : Restyler.Config.Glob
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Restyler.Config.Glob
( Glob (..)
, GlobTarget (..)
Expand Down
8 changes: 8 additions & 0 deletions src/Restyler/Config/Image.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{-# LANGUAGE DerivingVia #-}
{-# LANGUAGE RecordWildCards #-}

-- |
--
-- Module : Restyler.Config.Image
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Restyler.Config.Image
( Image
, overrideRestylerImage
Expand Down
8 changes: 8 additions & 0 deletions src/Restyler/Config/Include.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-- |
--
-- Module : Restyler.Config.Include
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Restyler.Config.Include
( Include (..)
, explicit
Expand Down
8 changes: 8 additions & 0 deletions src/Restyler/Config/Interpreter.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-- |
--
-- Module : Restyler.Config.Interpreter
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Restyler.Config.Interpreter
( Interpreter (..)
, readInterpreter
Expand Down
8 changes: 8 additions & 0 deletions src/Restyler/Config/RemoteFile.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-- |
--
-- Module : Restyler.Config.RemoteFile
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Restyler.Config.RemoteFile
( RemoteFile (..)
) where
Expand Down
8 changes: 8 additions & 0 deletions src/Restyler/Config/RequestReview.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-- |
--
-- Module : Restyler.Config.RequestReview
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Restyler.Config.RequestReview
( RequestReviewConfig
) where
Expand Down
8 changes: 8 additions & 0 deletions src/Restyler/Config/Restyler.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{-# LANGUAGE FieldSelectors #-}
{-# LANGUAGE RecordWildCards #-}

-- |
--
-- Module : Restyler.Config.Restyler
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Restyler.Config.Restyler
( RestylerOverride
, overrideRestylers
Expand Down
8 changes: 8 additions & 0 deletions src/Restyler/Config/SketchyList.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-- |
--
-- Module : Restyler.Config.SketchyList
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Restyler.Config.SketchyList
( SketchyList
, unSketchy
Expand Down
8 changes: 8 additions & 0 deletions src/Restyler/Config/Statuses.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-- |
--
-- Module : Restyler.Config.Statuses
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Restyler.Config.Statuses
( Statuses (..)
) where
Expand Down
8 changes: 8 additions & 0 deletions src/Restyler/Delimited.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{-# LANGUAGE FieldSelectors #-}
{-# LANGUAGE RecordWildCards #-}

-- |
--
-- Module : Restyler.Delimited
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Restyler.Delimited
( Delimiters (..)
, restyleDelimited
Expand Down
8 changes: 8 additions & 0 deletions src/Restyler/GitHub/PullRequest.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
-- |
--
-- Module : Restyler.GitHub.PullRequest
-- Copyright : (c) 2024 Patrick Brisbin
-- License : AGPL-3
-- Maintainer : [email protected]
-- Stability : experimental
-- Portability : POSIX
module Restyler.GitHub.PullRequest
( PullRequest
, HasPullRequestState (..)
Expand Down
Loading
Loading