Skip to content
Permalink
Browse files

Merge #360

360: Drop servant dependency r=ruhatch a=erikd

Not actually using servant yet, so drop the tiny bit we are using for
now and add it when and if we need it.

Co-authored-by: Erik de Castro Lopo <erikd@mega-nerd.com>
  • Loading branch information...
iohk-bors and erikd committed Mar 15, 2019
2 parents a6ee022 + bd9864a commit 853b47fbb7ce1cb5cdce9f8f7480d2df8a40a462
Showing with 0 additions and 4 deletions.
  1. +0 −1 cardano-chain.cabal
  2. +0 −3 src/Cardano/Chain/Slotting/EpochIndex.hs
@@ -134,7 +134,6 @@ library
, memory
, mtl
, resourcet
, servant
, streaming
, streaming-binary
, streaming-bytestring
@@ -20,7 +20,6 @@ import qualified Data.Aeson as Aeson (FromJSON(..), ToJSON(..))
import Data.Ix (Ix)
import Formatting (bprint, int)
import Formatting.Buildable (Buildable(..))
import Servant.API (FromHttpApiData)
import Text.JSON.Canonical (FromJSON(..), ToJSON(..))

import Cardano.Binary.Class (Bi(..))
@@ -49,8 +48,6 @@ instance Bi EpochIndex where
encode (EpochIndex epoch) = encode epoch
decode = EpochIndex <$> decode

deriving instance FromHttpApiData EpochIndex

-- Note that it will be encoded as string, because 'EpochIndex' doesn't
-- necessary fit into JS number.
instance Monad m => ToJSON m EpochIndex where

0 comments on commit 853b47f

Please sign in to comment.
You can’t perform that action at this time.