Skip to content

Commit

Permalink
Enable licenselint
Browse files Browse the repository at this point in the history
Summary:
```
 arc lint --apply-patches --take LICENSELINT --paths-cmd 'hg files common/hs'
```

Reviewed By: zertosh

Differential Revision: D47467990

fbshipit-source-id: 6481068bbb96f48ce6db7dab6a3d6105265e4040
  • Loading branch information
Simon Marlow authored and facebook-github-bot committed Jul 15, 2023
1 parent 867e4b0 commit b63948c
Show file tree
Hide file tree
Showing 335 changed files with 2,690 additions and 689 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/get_deps_tag.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env sh
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

git clone https://github.com/facebook/wangle.git tmp >& /dev/null
cd tmp && git tag | sort -r | head -1 && cd ..
Expand Down
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/env bash
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
GETDEPS_PATHS=(
Expand Down
8 changes: 7 additions & 1 deletion common/github/Facebook/Init.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

module Facebook.Init where

Expand Down
8 changes: 7 additions & 1 deletion common/github/TestRunner.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

module TestRunner (module TestRunner) where

Expand Down
8 changes: 7 additions & 1 deletion common/mangle/Main.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

module Main (main) where

Expand Down
8 changes: 7 additions & 1 deletion common/mangle/Mangle.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

{-# LANGUAGE ViewPatterns #-}

Expand Down
8 changes: 7 additions & 1 deletion common/mangle/Mangle/TH.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

module Mangle.TH ( mangle ) where

Expand Down
8 changes: 7 additions & 1 deletion common/mangle/hsc.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// Copyright (c) Facebook, Inc. and its affiliates.
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

Expand Down
8 changes: 7 additions & 1 deletion common/mangle/tests/Test.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

module Test where

Expand Down
8 changes: 7 additions & 1 deletion common/util/Control/Concurrent/Stream.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

-- | Higher level concurrency facilities for multiple workers concurrently
-- over a streaming source of input
Expand Down
8 changes: 7 additions & 1 deletion common/util/Data/MovingAverageRateLimiter.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

{- |
A standalone rate limiter that accepts some fluctuations in the traffic.
Expand Down
8 changes: 7 additions & 1 deletion common/util/Data/RateLimiterMap.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

{-# LANGUAGE CPP #-}
module Data.RateLimiterMap
Expand Down
8 changes: 7 additions & 1 deletion common/util/Foreign/CPP/Addressable.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

{-# LANGUAGE DefaultSignatures #-}
module Foreign.CPP.Addressable
Expand Down
8 changes: 7 additions & 1 deletion common/util/Foreign/CPP/Dynamic.hsc
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

--
-- Marshal folly::dynamic directly into Haskell's Data.Aeson,
Expand Down
8 changes: 7 additions & 1 deletion common/util/Foreign/CPP/HsStruct.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

module Foreign.CPP.HsStruct
( coerce
Expand Down
8 changes: 7 additions & 1 deletion common/util/Foreign/CPP/HsStruct/HsArray.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

{-# LANGUAGE TemplateHaskell #-}
module Foreign.CPP.HsStruct.HsArray
Expand Down
9 changes: 8 additions & 1 deletion common/util/Foreign/CPP/HsStruct/HsMap.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
-- (c) Facebook, Inc. and its affiliates. Confidential and proprietary.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

{-# LANGUAGE TemplateHaskell #-}

module Foreign.CPP.HsStruct.HsMap (
Expand Down
8 changes: 7 additions & 1 deletion common/util/Foreign/CPP/HsStruct/HsOption.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

{-# LANGUAGE TemplateHaskell #-}
module Foreign.CPP.HsStruct.HsOption
Expand Down
9 changes: 8 additions & 1 deletion common/util/Foreign/CPP/HsStruct/HsSet.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
-- (c) Facebook, Inc. and its affiliates. Confidential and proprietary.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

{-# LANGUAGE TemplateHaskell #-}

module Foreign.CPP.HsStruct.HsSet (
Expand Down
8 changes: 7 additions & 1 deletion common/util/Foreign/CPP/HsStruct/HsStdTuple.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

{-# LANGUAGE TemplateHaskell #-}
module Foreign.CPP.HsStruct.HsStdTuple
Expand Down
8 changes: 7 additions & 1 deletion common/util/Foreign/CPP/HsStruct/HsStdVariant.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

{-# LANGUAGE TemplateHaskell #-}

Expand Down
8 changes: 7 additions & 1 deletion common/util/Foreign/CPP/HsStruct/Types.hsc
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE TemplateHaskell #-}
Expand Down
8 changes: 7 additions & 1 deletion common/util/Foreign/CPP/HsStruct/Unsafe.hsc
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

module Foreign.CPP.HsStruct.Unsafe
( unsafeMaybeRelease
Expand Down
8 changes: 7 additions & 1 deletion common/util/Foreign/CPP/HsStruct/Utils.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright 2004-present Facebook. All Rights Reserved.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

module Foreign.CPP.HsStruct.Utils
( withCxxObject
Expand Down
8 changes: 7 additions & 1 deletion common/util/Foreign/CPP/Marshallable.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

{-# LANGUAGE DefaultSignatures #-}
module Foreign.CPP.Marshallable
Expand Down
8 changes: 7 additions & 1 deletion common/util/Foreign/CPP/Marshallable/TH.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

{- |
This module provides facilities to auto generate instances for
Expand Down
8 changes: 7 additions & 1 deletion common/util/Util/ASan.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

module Util.ASan
( alloca
Expand Down
8 changes: 7 additions & 1 deletion common/util/Util/Aeson.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

-- FromJSON instance below is an orphan (deliberately)
{-# OPTIONS_GHC -Wno-orphans #-}
Expand Down
8 changes: 7 additions & 1 deletion common/util/Util/AllocLimit.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

{-# OPTIONS_GHC -fno-warn-unused-imports #-}

Expand Down
8 changes: 7 additions & 1 deletion common/util/Util/Applicative.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

module Util.Applicative
( concatMapM
Expand Down
8 changes: 7 additions & 1 deletion common/util/Util/AsanAlloc.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// Copyright (c) Facebook, Inc. and its affiliates.
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#include "Util/AsanAlloc.h"

Expand Down
8 changes: 7 additions & 1 deletion common/util/Util/AsanAlloc.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
// Copyright (c) Facebook, Inc. and its affiliates.
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/

#pragma once

Expand Down
8 changes: 7 additions & 1 deletion common/util/Util/Async.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
-- Copyright (c) Facebook, Inc. and its affiliates.
{-
Copyright (c) Meta Platforms, Inc. and affiliates.
All rights reserved.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
-}

-- | This module provides some higher level concurrency facilities
module Util.Async
Expand Down
Loading

0 comments on commit b63948c

Please sign in to comment.