Compare commits
2 commits
a7adee13de
...
998ff44733
Author | SHA1 | Date | |
---|---|---|---|
998ff44733 | |||
be830be714 |
1 changed files with 6 additions and 6 deletions
|
@ -36,9 +36,9 @@ import qualified Generics.SOP as SOP
|
|||
|
||||
-- | Represents a Hex string. Guarantees that all characters it contains
|
||||
-- are valid hex characters.
|
||||
data HexString =
|
||||
HexString BS.ByteString
|
||||
deriving stock (Eq, Prelude.Show, GHC.Generic)
|
||||
newtype HexString = HexString
|
||||
{ bytes :: BS.ByteString
|
||||
} deriving stock (Eq, Prelude.Show, GHC.Generic)
|
||||
deriving anyclass (SOP.Generic, SOP.HasDatatypeInfo)
|
||||
deriving anyclass (Data.Structured.Show)
|
||||
deriving (BorshSize, ToBorsh, FromBorsh) via AsStruct HexString
|
||||
|
|
Loading…
Reference in a new issue