Skip to content

Commit fb2cabb

Browse files
Josef Svenningssonfacebook-github-bot
Josef Svenningsson
authored andcommitted
Add copyright headers
Reviewed By: simonmar Differential Revision: D62383590 fbshipit-source-id: 9d0e60f524be8c40c9934ed4458f5202cbf377a6
1 parent 993125f commit fb2cabb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+404
-228
lines changed

Haxl/Core.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
-- Copyright (c) 2014-present, Facebook, Inc.
2-
-- All rights reserved.
3-
--
4-
-- This source code is distributed under the terms of a BSD license,
5-
-- found in the LICENSE file.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
68

79
-- | Everything needed to define data sources and to invoke the
810
-- engine.

Haxl/Core/CallGraph.hs

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
-- Copyright 2004-present Facebook. All Rights Reserved.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
8+
29
{-# LANGUAGE OverloadedStrings #-}
310
{-# LANGUAGE CPP #-}
411

Haxl/Core/DataCache.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
-- Copyright (c) 2014-present, Facebook, Inc.
2-
-- All rights reserved.
3-
--
4-
-- This source code is distributed under the terms of a BSD license,
5-
-- found in the LICENSE file.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
68

79
{-# LANGUAGE ExistentialQuantification #-}
810
{-# LANGUAGE RankNTypes #-}

Haxl/Core/DataSource.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
-- Copyright (c) 2014-present, Facebook, Inc.
2-
-- All rights reserved.
3-
--
4-
-- This source code is distributed under the terms of a BSD license,
5-
-- found in the LICENSE file.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
68

79
{-# LANGUAGE ConstraintKinds #-}
810
{-# LANGUAGE ExistentialQuantification #-}

Haxl/Core/Exception.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
-- Copyright (c) 2014-present, Facebook, Inc.
2-
-- All rights reserved.
3-
--
4-
-- This source code is distributed under the terms of a BSD license,
5-
-- found in the LICENSE file.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
68

79
{-# LANGUAGE CPP #-}
810
{-# LANGUAGE GeneralizedNewtypeDeriving #-}

Haxl/Core/Fetch.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
-- Copyright (c) 2014-present, Facebook, Inc.
2-
-- All rights reserved.
3-
--
4-
-- This source code is distributed under the terms of a BSD license,
5-
-- found in the LICENSE file.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
68

79
{-# LANGUAGE CPP #-}
810
{-# LANGUAGE ConstraintKinds #-}

Haxl/Core/Flags.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
-- Copyright (c) 2014-present, Facebook, Inc.
2-
-- All rights reserved.
3-
--
4-
-- This source code is distributed under the terms of a BSD license,
5-
-- found in the LICENSE file.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
68

79
{-# LANGUAGE BangPatterns #-}
810

Haxl/Core/Memo.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
-- Copyright (c) 2014-present, Facebook, Inc.
2-
-- All rights reserved.
3-
--
4-
-- This source code is distributed under the terms of a BSD license,
5-
-- found in the LICENSE file.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
68

79
{-# LANGUAGE BangPatterns #-}
810
{-# LANGUAGE DeriveDataTypeable #-}

Haxl/Core/Monad.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
-- Copyright (c) 2014-present, Facebook, Inc.
2-
-- All rights reserved.
3-
--
4-
-- This source code is distributed under the terms of a BSD license,
5-
-- found in the LICENSE file.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
68

79
{- TODO
810

Haxl/Core/Parallel.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
-- Copyright (c) 2014-present, Facebook, Inc.
2-
-- All rights reserved.
3-
--
4-
-- This source code is distributed under the terms of a BSD license,
5-
-- found in the LICENSE file.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
68

79
{-# LANGUAGE CPP #-}
810
{-# LANGUAGE BangPatterns #-}

Haxl/Core/Profile.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
-- Copyright (c) 2014-present, Facebook, Inc.
2-
-- All rights reserved.
3-
--
4-
-- This source code is distributed under the terms of a BSD license,
5-
-- found in the LICENSE file.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
68

79
{-# LANGUAGE BangPatterns #-}
810
{-# LANGUAGE CPP #-}

Haxl/Core/RequestStore.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
-- Copyright (c) 2014-present, Facebook, Inc.
2-
-- All rights reserved.
3-
--
4-
-- This source code is distributed under the terms of a BSD license,
5-
-- found in the LICENSE file.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
68

79
{-# LANGUAGE ExistentialQuantification #-}
810
{-# LANGUAGE RankNTypes #-}

Haxl/Core/Run.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
-- Copyright (c) 2014-present, Facebook, Inc.
2-
-- All rights reserved.
3-
--
4-
-- This source code is distributed under the terms of a BSD license,
5-
-- found in the LICENSE file.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
68

79
{-# LANGUAGE BangPatterns #-}
810
{-# LANGUAGE RankNTypes #-}

Haxl/Core/ShowP.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
-- Copyright (c) 2014-present, Facebook, Inc.
2-
-- All rights reserved.
3-
--
4-
-- This source code is distributed under the terms of a BSD license,
5-
-- found in the LICENSE file.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
68

79
-- |
810
-- Most users should import "Haxl.Core" instead of importing this

Haxl/Core/StateStore.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
-- Copyright (c) 2014-present, Facebook, Inc.
2-
-- All rights reserved.
3-
--
4-
-- This source code is distributed under the terms of a BSD license,
5-
-- found in the LICENSE file.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
68

79
{-# LANGUAGE ExistentialQuantification #-}
810
{-# LANGUAGE RankNTypes #-}

Haxl/Core/Stats.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
-- Copyright (c) 2014-present, Facebook, Inc.
2-
-- All rights reserved.
3-
--
4-
-- This source code is distributed under the terms of a BSD license,
5-
-- found in the LICENSE file.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
68

79
{-# LANGUAGE OverloadedStrings #-}
810
{-# LANGUAGE RecordWildCards #-}

Haxl/Core/Util.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
-- Copyright (c) 2014-present, Facebook, Inc.
2-
-- All rights reserved.
3-
--
4-
-- This source code is distributed under the terms of a BSD license,
5-
-- found in the LICENSE file.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
68

79
-- | Internal utilities only.
810
--

Haxl/DataSource/ConcurrentIO.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
-- Copyright (c) 2014-present, Facebook, Inc.
2-
-- All rights reserved.
3-
--
4-
-- This source code is distributed under the terms of a BSD license,
5-
-- found in the LICENSE file.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
68

79
{-# LANGUAGE DeriveDataTypeable #-}
810
{-# LANGUAGE FlexibleContexts #-}

Haxl/Prelude.hs

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
-- Copyright (c) 2014-present, Facebook, Inc.
2-
-- All rights reserved.
3-
--
4-
-- This source code is distributed under the terms of a BSD license,
5-
-- found in the LICENSE file.
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
68

79
{-# LANGUAGE FlexibleInstances #-}
810
{-# LANGUAGE MultiParamTypeClasses #-}

Setup.hs

+9
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
8+
9+
module Setup where
110
import Distribution.Simple
211
main = defaultMain

example/facebook/FB.hs

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
8+
19
module FB
210
( getObject
311
, getUser

example/facebook/FB/DataSource.hs

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
8+
19
{-# LANGUAGE OverloadedStrings, StandaloneDeriving, RecordWildCards,
210
GADTs, TypeFamilies, MultiParamTypeClasses, DeriveDataTypeable,
311
FlexibleInstances #-}

example/facebook/Setup.hs

+9
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
8+
9+
module Setup where
110
import Distribution.Simple
211
main = defaultMain

example/facebook/TestFB.hs

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
8+
19
{-# LANGUAGE RebindableSyntax, OverloadedStrings #-}
2-
module Main (main) where
10+
module TestFB (main) where
311

412
import Control.Exception as E
513
import Data.Aeson

example/sql/Main.hs

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
8+
19
-- Necessary:
210
{-# LANGUAGE DeriveDataTypeable #-}
311
{-# LANGUAGE GADTs #-}

example/sql/Setup.hs

+9
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1+
{-
2+
Copyright (c) Meta Platforms, Inc. and affiliates.
3+
All rights reserved.
4+
5+
This source code is licensed under the BSD-style license found in the
6+
LICENSE file in the root directory of this source tree.
7+
-}
8+
9+
module Setup where
110
import Distribution.Simple
211
main = defaultMain

0 commit comments

Comments
 (0)