Skip to content
Permalink
Browse files

Drop servant dependency

Not actually using servant yet, so drop the tiny bit we are using for
now and add it when and if we need it.
  • Loading branch information...
erikd committed Mar 15, 2019
1 parent a6ee022 commit bd9864a323675014f506aea9a9543aafb487467d
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 bd9864a

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.