Skip to content

Commit 484b92e

Browse files
committed
meta: Fix copyright headers
* Use the © symbol, because it is beautiful and compact * Add year * Unify the comment style using multiline comments where possible
1 parent ec767f0 commit 484b92e

19 files changed

+91
-54
lines changed

.stylish-haskell.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Copyright Serokell OU <hi@serokell.io>
2-
# Copyright Lars Jellema <lars.jellema@gmail.com>
1+
# © 2019 Serokell <hi@serokell.io>
2+
# © 2019 Lars Jellema <lars.jellema@gmail.com>
3+
#
34
# SPDX-License-Identifier: MPL-2.0
45

56
steps:

CHANGELOG.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
<!-- Copyright Serokell OU <hi@serokell.io> -->
2-
<!-- Copyright Lars Jellema <lars.jellema@gmail.com> -->
3-
<!-- SPDX-License-Identifier: MPL-2.0 -->
1+
<!-- © 2019 Serokell <hi@serokell.io>
2+
- © 2019 Lars Jellema <lars.jellema@gmail.com>
3+
-
4+
- SPDX-License-Identifier: MPL-2.0
5+
-->
6+
47

58
# Revision history for nixfmt
69

README.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
<!-- Copyright Serokell OU <hi@serokell.io> -->
2-
<!-- Copyright Lars Jellema <lars.jellema@gmail.com> -->
3-
<!-- SPDX-License-Identifier: MPL-2.0 -->
1+
<!-- © 2019 Serokell <hi@serokell.io>
2+
- © 2019 Lars Jellema <lars.jellema@gmail.com>
3+
-
4+
- SPDX-License-Identifier: MPL-2.0
5+
-->
6+
47

58
# `nixfmt`
69

Setup.hs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
-- Copyright Serokell OU <hi@serokell.io>
2-
-- Copyright Lars Jellema <lars.jellema@gmail.com>
3-
-- SPDX-License-Identifier: MPL-2.0
1+
{- © 2019 Serokell <hi@serokell.io>
2+
- © 2019 Lars Jellema <lars.jellema@gmail.com>
3+
-
4+
- SPDX-License-Identifier: MPL-2.0
5+
-}
46

57
import Distribution.Simple
68
main = defaultMain

default.nix

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Copyright Serokell OU <hi@serokell.io>
2-
# Copyright Lars Jellema <lars.jellema@gmail.com>
1+
# © 2019 Serokell <hi@serokell.io>
2+
# © Lars Jellema <lars.jellema@gmail.com>
3+
#
34
# SPDX-License-Identifier: MPL-2.0
45

56
{ pkgs ? import <nixpkgs> { } }:

js/JSInterface.hs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
-- Copyright Serokell OU <hi@serokell.io>
2-
-- SPDX-License-Identifier: MPL-2.0
1+
{- © 2019 Serokell <hi@serokell.io>
2+
-
3+
- SPDX-License-Identifier: MPL-2.0
4+
-}
35

46
{-# LANGUAGE OverloadedStrings #-}
57
import GHCJS.Marshal

js/index.html

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<!DOCTYPE html>
2-
<!--
3-
Copyright Serokell OU <hi@serokell.io>
4-
SPDX-License-Identifier: MPL-2.0
5-
-->
2+
3+
<!-- © 2019 Serokell <hi@serokell.io>
4+
-
5+
- SPDX-License-Identifier: MPL-2.0
6+
-->
7+
68
<html>
79
<head>
810
<title>nixfmt online demo</title>

js/js-interface-wrapper.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/*
2-
Copyright Serokell OU <hi@serokell.io>
3-
SPDX-License-Identifier: MPL-2.0
4-
*/
1+
/* © 2019 Serokell <hi@serokell.io>
2+
*
3+
* SPDX-License-Identifier: MPL-2.0
4+
*/
55

66
function nixfmt(text, width=80, filename="<stdin>") {
77
const param = {width, filename}

main/Main.hs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
-- Copyright Serokell OU <hi@serokell.io>
2-
-- Copyright Lars Jellema <lars.jellema@gmail.com>
3-
-- SPDX-License-Identifier: MPL-2.0
1+
{- © 2019 Serokell <hi@serokell.io>
2+
- © 2019Lars Jellema <lars.jellema@gmail.com>
3+
-
4+
- SPDX-License-Identifier: MPL-2.0
5+
-}
46

57
{-# LANGUAGE DeriveDataTypeable #-}
68

nixfmt.cabal

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
-- Copyright Serokell OU <hi@serokell.io>
2-
-- Copyright Lars Jellema <lars.jellema@gmail.com>
3-
-- SPDX-License-Identifier: MPL-2.0
4-
51
cabal-version: >=1.10
62

3+
-- © 2019 Serokell <hi@serokell.io>
4+
-- © 2019 Lars Jellema <lars.jellema@gmail.com>
5+
--
6+
-- SPDX-License-Identifier: MPL-2.0
7+
78
name: nixfmt
89
version: 0.1.0
910
synopsis: An opinionated formatter for Nix
@@ -14,7 +15,7 @@ license: MPL-2.0
1415
license-file: LICENSE
1516
author: Lars Jellema
1617
maintainer: lars.jellema@gmail.com
17-
-- copyright:
18+
copyright: 2019 Serokell, 2019 Lars Jellema
1819
category: Development
1920
build-type: Simple
2021
extra-source-files: README.md, CHANGELOG.md

release.nix

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# © 2019 Serokell <hi@serokell.io>
2+
# © Lars Jellema <lars.jellema@gmail.com>
3+
#
4+
# SPDX-License-Identifier: MPL-2.0
5+
16
let
27
pkgs = import <nixpkgs> { };
38
inherit (pkgs) haskell;

shell.nix

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
# Copyright Serokell OU <hi@serokell.io>
2-
# Copyright Lars Jellema <lars.jellema@gmail.com>
1+
# © 2019 Serokell <hi@serokell.io>
2+
# © Lars Jellema <lars.jellema@gmail.com>
3+
#
34
# SPDX-License-Identifier: MPL-2.0
45

56
{ pkgs ? import <nixpkgs> { } }:

src/Nixfmt.hs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
-- Copyright Serokell OU <hi@serokell.io>
2-
-- Copyright Lars Jellema <lars.jellema@gmail.com>
3-
-- SPDX-License-Identifier: MPL-2.0
1+
{- © 2019 Serokell <hi@serokell.io>
2+
- © 2019 Lars Jellema <lars.jellema@gmail.com>
3+
-
4+
- SPDX-License-Identifier: MPL-2.0
5+
-}
46

57
module Nixfmt
68
( errorBundlePretty

src/Nixfmt/Lexer.hs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
-- Copyright Serokell OU <hi@serokell.io>
2-
-- Copyright Lars Jellema <lars.jellema@gmail.com>
3-
-- SPDX-License-Identifier: MPL-2.0
1+
{- © 2019 Serokell <hi@serokell.io>
2+
- © 2019 Lars Jellema <lars.jellema@gmail.com>
3+
-
4+
- SPDX-License-Identifier: MPL-2.0
5+
-}
46

57
{-# LANGUAGE LambdaCase, OverloadedStrings #-}
68

src/Nixfmt/Parser.hs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
-- Copyright Serokell OU <hi@serokell.io>
2-
-- Copyright Lars Jellema <lars.jellema@gmail.com>
3-
-- SPDX-License-Identifier: MPL-2.0
1+
{- © 2019 Serokell <hi@serokell.io>
2+
- © 2019 Lars Jellema <lars.jellema@gmail.com>
3+
-
4+
- SPDX-License-Identifier: MPL-2.0
5+
-}
46

57
{-# LANGUAGE LambdaCase, OverloadedStrings #-}
68

src/Nixfmt/Predoc.hs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
-- Copyright Serokell OU <hi@serokell.io>
2-
-- Copyright Lars Jellema <lars.jellema@gmail.com>
3-
-- SPDX-License-Identifier: MPL-2.0
1+
{- © 2019 Serokell <hi@serokell.io>
2+
- © 2019 Lars Jellema <lars.jellema@gmail.com>
3+
-
4+
- SPDX-License-Identifier: MPL-2.0
5+
-}
46

57
{-# LANGUAGE DeriveFoldable, DeriveFunctor, FlexibleInstances,
68
OverloadedStrings, StandaloneDeriving #-}

src/Nixfmt/Pretty.hs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
-- Copyright Serokell OU <hi@serokell.io>
2-
-- Copyright Lars Jellema <lars.jellema@gmail.com>
3-
-- SPDX-License-Identifier: MPL-2.0
1+
{- © 2019 Serokell <hi@serokell.io>
2+
- © 2019 Lars Jellema <lars.jellema@gmail.com>
3+
-
4+
- SPDX-License-Identifier: MPL-2.0
5+
-}
46

57
{-# LANGUAGE FlexibleInstances, LambdaCase, OverloadedStrings #-}
68

src/Nixfmt/Types.hs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
-- Copyright Serokell OU <hi@serokell.io>
2-
-- Copyright Lars Jellema <lars.jellema@gmail.com>
3-
-- SPDX-License-Identifier: MPL-2.0
1+
{- © 2019 Serokell <hi@serokell.io>
2+
- © 2019 Lars Jellema <lars.jellema@gmail.com>
3+
-
4+
- SPDX-License-Identifier: MPL-2.0
5+
-}
46

57
{-# LANGUAGE OverloadedStrings #-}
68

src/Nixfmt/Util.hs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
-- Copyright Serokell OU <hi@serokell.io>
2-
-- Copyright Lars Jellema <lars.jellema@gmail.com>
3-
-- SPDX-License-Identifier: MPL-2.0
1+
{- © 2019 Serokell <hi@serokell.io>
2+
- © 2019 Lars Jellema <lars.jellema@gmail.com>
3+
-
4+
- SPDX-License-Identifier: MPL-2.0
5+
-}
46

57
module Nixfmt.Util
68
( manyP

0 commit comments

Comments
 (0)