Skip to content

Commit

Permalink
Merge PR #27
Browse files Browse the repository at this point in the history
  • Loading branch information
kazu-yamamoto committed Dec 3, 2023
2 parents 46459d0 + d517cef commit 90e1a0f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Crypto/Hash/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
--
-- Crypto hash types definitions
--
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
{-# LANGUAGE RoleAnnotations #-}
{-# LANGUAGE ScopedTypeVariables #-}
{-# LANGUAGE TypeFamilies #-}
module Crypto.Hash.Types
Expand Down Expand Up @@ -97,6 +98,8 @@ newtype Context a = Context Bytes
newtype Digest a = Digest (Block Word8)
deriving (Eq,Ord,ByteArrayAccess, Data)

type role Digest nominal

instance NFData (Digest a) where
rnf (Digest u) = u `deepseq` ()

Expand Down

0 comments on commit 90e1a0f

Please sign in to comment.