Skip to content

Commit

Permalink
Merge pull request #48 from EarnestResearch/INFRA-535
Browse files Browse the repository at this point in the history
remove nix, bump dependencies
  • Loading branch information
andreyk0 authored Feb 23, 2024
2 parents 7543d87 + a1ed020 commit 07eed0b
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 81 deletions.
1 change: 0 additions & 1 deletion .envrc

This file was deleted.

21 changes: 8 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,12 @@ name: Test
on: [push]

jobs:
tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v13
- uses: cachix/cachix-action@v10
with:
name: earnestresearch-public
signingKey: '${{ secrets.EARNESTRESEARCH_PUBLIC_CACHIX_SIGNING_KEY }}'
- run: nix-build ci.nix
- run: nix-shell --run "exit 0"
- uses: actions/checkout@v3
- uses: haskell-actions/setup@v2
with:
ghc-version: '9.6.4'
cabal-version: 'latest'
- run: cabal build all
8 changes: 0 additions & 8 deletions ci.nix

This file was deleted.

18 changes: 0 additions & 18 deletions default.nix

This file was deleted.

2 changes: 1 addition & 1 deletion honeycomb-example/example.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ executable honeycomb-example
-- other-modules:
-- other-extensions:
build-depends:
base >=4.13 && <4.14
base >=4.13
, honeycomb
, honeycomb-servant-client-rio
, honeycomb-servant-server-rio
Expand Down
3 changes: 2 additions & 1 deletion honeycomb-example/src/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import Servant.Client
import Servant.Client.Honeycomb.RIO
import Servant.Server.Honeycomb.RIO
import qualified RIO.HashMap as HM
import qualified RIO.Text as T

type FibonacciApi =
"fib" :> Capture "index" Int :> Get '[JSON] Int
Expand All @@ -45,12 +44,14 @@ runGetFibonacci index
runGetHealthcheck :: RIO AppEnv Text
runGetHealthcheck = pure "ok"

fibonacciServer :: (Int -> RIO AppEnv Int) :<|> RIO AppEnv Text
fibonacciServer =
runGetFibonacci
:<|> runGetHealthcheck

-- client implementations

getFibonacci :: Int -> RIO AppEnv Int
getFibonacci :<|> getHealthcheck =
traceClientRIO Proxy fibonacciApi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ source-repository head

library
build-depends:
, base >=4.11 && <10
, base >=4.11
, honeycomb
, honeycomb-servant
, honeycomb-servant-client
Expand Down
2 changes: 1 addition & 1 deletion honeycomb-servant-client/honeycomb-servant-client.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ source-repository head

library
build-depends:
, base >=4.11 && <10
, base >=4.11
, containers
, exceptions
, honeycomb
Expand Down
4 changes: 2 additions & 2 deletions honeycomb-servant-client/src/Servant/Client/Honeycomb.hs
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ instance Alt (TraceClientM env) where
a <!> b = a `catchIO` const b

instance (HasClientEnv env, HC.HasSpanContext env) => RunClient (TraceClientM env) where
runRequest req =
runRequestAcceptStatus ss req =
do
spanContext <- view HC.spanContextL
clientEnv <- view clientEnvL
let reqWithTraceHeader = traceValue spanContext req
nt clientEnv $ performRequest reqWithTraceHeader
nt clientEnv $ performRequest ss reqWithTraceHeader
where
nt :: ClientEnv -> ClientM response -> TraceClientM env response
nt clientEnv (ClientM response) =
Expand Down
2 changes: 1 addition & 1 deletion honeycomb-servant-server/honeycomb-servant-server.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ source-repository head

library
build-depends:
, base >=4.11 && <10
, base >=4.11
, containers
, honeycomb
, honeycomb-servant
Expand Down
2 changes: 1 addition & 1 deletion honeycomb-servant/honeycomb-servant.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ source-repository head

library
build-depends:
, base >=4.11 && <10
, base >=4.11
, containers
, honeycomb
, honeycomb-wai
Expand Down
2 changes: 1 addition & 1 deletion honeycomb-wai/honeycomb-wai.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ library
ghc-options: -fwrite-ide-info

build-depends:
, base >=4.10 && <10
, base >=4.10
, bytestring
, honeycomb
, http-types
Expand Down
3 changes: 2 additions & 1 deletion honeycomb-wai/src/Network/Wai/Honeycomb.hs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ module Network.Wai.Honeycomb
)
where

import Control.Monad.Reader (MonadReader, join, local)
import Control.Monad (join)
import Control.Monad.Reader (MonadReader, local)
import qualified Data.HashMap.Strict as HM
import Data.IP
import qualified Data.List as List
Expand Down
2 changes: 1 addition & 1 deletion honeycomb/honeycomb.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ common shared-properties

build-depends:
, aeson
, base >=4.11 && <10
, base >=4.11
, bytestring
, hashable
, http-client
Expand Down
3 changes: 2 additions & 1 deletion honeycomb/src/Honeycomb/Core.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ module Honeycomb.Core
)
where

import Control.Monad.Reader (MonadReader, local, void)
import Control.Monad (void)
import Control.Monad.Reader (MonadReader, local)
import Data.Maybe (isJust)
import qualified Data.Text as T
import Honeycomb.Core.Internal.Types
Expand Down
12 changes: 0 additions & 12 deletions nixpkgs/default.nix

This file was deleted.

17 changes: 0 additions & 17 deletions shell.nix

This file was deleted.

0 comments on commit 07eed0b

Please sign in to comment.