Skip to content

Commit b9be8bf

Browse files
author
Vijay Gupta
committed
updating eulerhs test file changes
1 parent 9bc4544 commit b9be8bf

File tree

126 files changed

+2021
-1062
lines changed

Some content is hidden

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

126 files changed

+2021
-1062
lines changed

cabal.project

Lines changed: 0 additions & 2 deletions
This file was deleted.

euler-hs.cabal

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
cabal-version: 3.0
22
name: euler-hs
33
version: 3.3.2.0
4-
synopsis: The Flow framework for Euler.
5-
description:
6-
homepage: https://github.com/juspay/euler-hs
7-
license:
4+
synopsis: The Flow framework for web backends
5+
license: Apache-2.0
86
author: Juspay Technologies Pvt Ltd
9-
maintainer: euler@juspay.in
10-
copyright: (C) Juspay Technologies Pvt Ltd 2019-2020
7+
maintainer: opensource@juspay.in
8+
copyright: (C) Juspay Technologies Pvt Ltd 2019-2022
119
category: Euler
1210
build-type: Simple
1311
tested-with: GHC ==8.8.4 || ==8.10.7

src/EulerHS/ART/DBReplay.hs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
{- |
2+
Module : EulerHS.ART.DBReplay
3+
Copyright : (C) Juspay Technologies Pvt Ltd 2019-2022
4+
License : Apache 2.0 (see the file LICENSE)
5+
Maintainer : opensource@juspay.in
6+
Stability : experimental
7+
Portability : non-portable
8+
9+
This module contains interpreters and methods for running `Flow` scenarios.
10+
-}
11+
112
{-# LANGUAGE DerivingStrategies #-}
213
{-# LANGUAGE RankNTypes #-}
314
{-# LANGUAGE ScopedTypeVariables #-}

src/EulerHS/ART/EnvVars.hs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
{- |
2+
Module : EulerHS.ART.EnvVars
3+
Copyright : (C) Juspay Technologies Pvt Ltd 2019-2022
4+
License : Apache 2.0 (see the file LICENSE)
5+
Maintainer : opensource@juspay.in
6+
Stability : experimental
7+
Portability : non-portable
8+
9+
This module contains interpreters and methods for running `Flow` scenarios.
10+
-}
11+
112
{-# LANGUAGE ScopedTypeVariables #-}
213

314
module EulerHS.ART.EnvVars where

src/EulerHS/ART/FlowUtils.hs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
{- |
2+
Module : EulerHS.ART.FlowUtils
3+
Copyright : (C) Juspay Technologies Pvt Ltd 2019-2022
4+
License : Apache 2.0 (see the file LICENSE)
5+
Maintainer : opensource@juspay.in
6+
Stability : experimental
7+
Portability : non-portable
8+
-}
9+
110
{-# LANGUAGE AllowAmbiguousTypes #-}
211
{-# LANGUAGE RankNTypes #-}
312
{-# LANGUAGE ScopedTypeVariables #-}

src/EulerHS/ART/ReplayFunctions.hs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
{- |
2+
Module : EulerHS.ART.ReplayFunctions
3+
Copyright : (C) Juspay Technologies Pvt Ltd 2019-2022
4+
License : Apache 2.0 (see the file LICENSE)
5+
Maintainer : opensource@juspay.in
6+
Stability : experimental
7+
Portability : non-portable
8+
-}
9+
110
{-# LANGUAGE RankNTypes #-}
211
{-# LANGUAGE DerivingStrategies #-}
312
{-# LANGUAGE ScopedTypeVariables #-}

src/EulerHS/ART/Types.hs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
{- |
2+
Module : EulerHS.ART.Types
3+
Copyright : (C) Juspay Technologies Pvt Ltd 2019-2022
4+
License : Apache 2.0 (see the file LICENSE)
5+
Maintainer : opensource@juspay.in
6+
Stability : experimental
7+
Portability : non-portable
8+
9+
This module contains types for ART recording.
10+
Import this module qualified as import EulerHS.ART.Types as ART
11+
-}
12+
113
{-# LANGUAGE DerivingStrategies #-}
214
{-# LANGUAGE ScopedTypeVariables #-}
315

src/EulerHS/ART/Utils.hs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
{- |
2+
Module : EulerHS.ART.Utils
3+
Copyright : (C) Juspay Technologies Pvt Ltd 2019-2022
4+
License : Apache 2.0 (see the file LICENSE)
5+
Maintainer : opensource@juspay.in
6+
Stability : experimental
7+
Portability : non-portable
8+
-}
9+
110
{-# LANGUAGE ScopedTypeVariables #-}
211

312
module EulerHS.ART.Utils where

src/EulerHS/Api.hs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
{- |
2+
Module : EulerHS.Api
3+
Copyright : (C) Juspay Technologies Pvt Ltd 2019-2022
4+
License : Apache 2.0 (see the file LICENSE)
5+
Maintainer : opensource@juspay.in
6+
Stability : experimental
7+
Portability : non-portable
8+
9+
This module contains the definition of the `EulerClient` type, which is a wrapper around `Servant.Client.Client` type.
10+
It also contains the definition of the `ApiTag` type, which is used to tag API calls in the logs.
11+
-}
12+
113
{-# LANGUAGE DerivingStrategies #-}
214
{-# LANGUAGE DeriveAnyClass #-}
315
{-# LANGUAGE RankNTypes #-}
@@ -14,11 +26,16 @@ import Servant.Client.Core.RunClient (RunClient)
1426
import qualified Servant.Client.Free as SCF
1527
import qualified EulerHS.Options as T
1628
import qualified EulerHS.Logger.Types as Log
29+
import qualified Servant.Client as SC
30+
import qualified Servant.Client.Core as SCC
1731

1832
newtype EulerClient a = EulerClient (Free SCF.ClientF a)
1933
deriving newtype (Functor, Applicative, Monad, RunClient)
2034
-- deriving stock (Show,Generic)
2135

36+
client :: SC.HasClient EulerClient api => Proxy api -> SC.Client EulerClient api
37+
client api = SCC.clientIn api $ Proxy @EulerClient
38+
2239
data LogServantRequest
2340
= LogServantRequest
2441
{ url :: String

src/EulerHS/ApiHelpers.hs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
{- |
2+
Module : EulerHS.ApiHelpers
3+
Copyright : (C) Juspay Technologies Pvt Ltd 2019-2022
4+
License : Apache 2.0 (see the file LICENSE)
5+
Maintainer : opensource@juspay.in
6+
Stability : experimental
7+
Portability : non-portable
8+
-}
9+
110
{-# LANGUAGE RankNTypes #-}
211
{-# LANGUAGE RecordWildCards #-}
312
module EulerHS.ApiHelpers where

0 commit comments

Comments
 (0)