Skip to content

Commit

Permalink
Add copyright headers
Browse files Browse the repository at this point in the history
Reviewed By: simonmar

Differential Revision: D62383590

fbshipit-source-id: 9d0e60f524be8c40c9934ed4458f5202cbf377a6
  • Loading branch information
Josef Svenningsson authored and facebook-github-bot committed Sep 10, 2024
1 parent 993125f commit fb2cabb
Show file tree
Hide file tree
Showing 56 changed files with 404 additions and 228 deletions.
12 changes: 7 additions & 5 deletions Haxl/Core.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-
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.
-}

-- | Everything needed to define data sources and to invoke the
-- engine.
Expand Down
9 changes: 8 additions & 1 deletion Haxl/Core/CallGraph.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
-- 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.
-}

{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE CPP #-}

Expand Down
12 changes: 7 additions & 5 deletions Haxl/Core/DataCache.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-
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 ExistentialQuantification #-}
{-# LANGUAGE RankNTypes #-}
Expand Down
12 changes: 7 additions & 5 deletions Haxl/Core/DataSource.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-
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 ConstraintKinds #-}
{-# LANGUAGE ExistentialQuantification #-}
Expand Down
12 changes: 7 additions & 5 deletions Haxl/Core/Exception.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-
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 #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
Expand Down
12 changes: 7 additions & 5 deletions Haxl/Core/Fetch.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-
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 #-}
{-# LANGUAGE ConstraintKinds #-}
Expand Down
12 changes: 7 additions & 5 deletions Haxl/Core/Flags.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-
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 BangPatterns #-}

Expand Down
12 changes: 7 additions & 5 deletions Haxl/Core/Memo.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-
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 BangPatterns #-}
{-# LANGUAGE DeriveDataTypeable #-}
Expand Down
12 changes: 7 additions & 5 deletions Haxl/Core/Monad.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-
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.
-}

{- TODO
Expand Down
12 changes: 7 additions & 5 deletions Haxl/Core/Parallel.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-
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 #-}
{-# LANGUAGE BangPatterns #-}
Expand Down
12 changes: 7 additions & 5 deletions Haxl/Core/Profile.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-
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 BangPatterns #-}
{-# LANGUAGE CPP #-}
Expand Down
12 changes: 7 additions & 5 deletions Haxl/Core/RequestStore.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-
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 ExistentialQuantification #-}
{-# LANGUAGE RankNTypes #-}
Expand Down
12 changes: 7 additions & 5 deletions Haxl/Core/Run.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-
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 BangPatterns #-}
{-# LANGUAGE RankNTypes #-}
Expand Down
12 changes: 7 additions & 5 deletions Haxl/Core/ShowP.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-
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.
-}

-- |
-- Most users should import "Haxl.Core" instead of importing this
Expand Down
12 changes: 7 additions & 5 deletions Haxl/Core/StateStore.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-
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 ExistentialQuantification #-}
{-# LANGUAGE RankNTypes #-}
Expand Down
12 changes: 7 additions & 5 deletions Haxl/Core/Stats.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-
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 OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
Expand Down
12 changes: 7 additions & 5 deletions Haxl/Core/Util.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-
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.
-}

-- | Internal utilities only.
--
Expand Down
12 changes: 7 additions & 5 deletions Haxl/DataSource/ConcurrentIO.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-
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 DeriveDataTypeable #-}
{-# LANGUAGE FlexibleContexts #-}
Expand Down
12 changes: 7 additions & 5 deletions Haxl/Prelude.hs
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
-- Copyright (c) 2014-present, Facebook, Inc.
-- All rights reserved.
--
-- This source code is distributed under the terms of a BSD license,
-- found in the LICENSE file.
{-
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 FlexibleInstances #-}
{-# LANGUAGE MultiParamTypeClasses #-}
Expand Down
9 changes: 9 additions & 0 deletions Setup.hs
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
{-
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 Setup where
import Distribution.Simple
main = defaultMain
8 changes: 8 additions & 0 deletions example/facebook/FB.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{-
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 FB
( getObject
, getUser
Expand Down
8 changes: 8 additions & 0 deletions example/facebook/FB/DataSource.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{-
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 OverloadedStrings, StandaloneDeriving, RecordWildCards,
GADTs, TypeFamilies, MultiParamTypeClasses, DeriveDataTypeable,
FlexibleInstances #-}
Expand Down
9 changes: 9 additions & 0 deletions example/facebook/Setup.hs
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
{-
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 Setup where
import Distribution.Simple
main = defaultMain
10 changes: 9 additions & 1 deletion example/facebook/TestFB.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
{-
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 RebindableSyntax, OverloadedStrings #-}
module Main (main) where
module TestFB (main) where

import Control.Exception as E
import Data.Aeson
Expand Down
8 changes: 8 additions & 0 deletions example/sql/Main.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
{-
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.
-}

-- Necessary:
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GADTs #-}
Expand Down
9 changes: 9 additions & 0 deletions example/sql/Setup.hs
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
{-
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 Setup where
import Distribution.Simple
main = defaultMain
Loading

0 comments on commit fb2cabb

Please sign in to comment.