Skip to content

Commit

Permalink
some polish
Browse files Browse the repository at this point in the history
  • Loading branch information
Anviking committed May 15, 2019
1 parent c967040 commit cc85a11
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/jormungandr/src/Cardano/Wallet/Binary/Jormungandr.hs
Expand Up @@ -163,14 +163,15 @@ data ConfigParam
| ProposalExpiration Word32
deriving (Eq, Show)

-- | @TagLen@ contains the tag/type of a @ConfigParam@ as well as the length
-- | @TagLen@ contains the tag/type of a @ConfigParam@ as well as its length
-- in number of bytes.
--
-- This information is stored in a /single/ @Word16@ in the binary format.
-- (@getTagLen@)
{-# ANN len ("HLint: ignore Defined but not used" :: String) #-}
{-# ANN tag ("HLint: ignore Defined but not used" :: String) #-}
data TagLen = TagLen { tag :: Int, len :: Int}
data TagLen = TagLen
{ tag :: Int -- | The kind of @ConfigParam@
, len :: Int -- | The length of the encoded @ConfigParam@ in bytes
}

getTagLen :: Get TagLen
getTagLen = do
Expand Down Expand Up @@ -212,7 +213,6 @@ newtype LeaderId = LeaderId ByteString
data LinearFee = LinearFee Word64 Word64 Word64
deriving (Eq, Show)


getDiscrimination :: Get Discrimination
getDiscrimination = getWord8 >>= \case
1 -> return Production
Expand Down

0 comments on commit cc85a11

Please sign in to comment.