Merge pull request #206 from haskell-crypto/replace-foundation-by-basement

remove dependency on foundation and moving to basement
This commit is contained in:
Vincent Hanquez 2017-12-17 18:12:41 +00:00 committed by GitHub
commit 82c22d50c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -22,7 +22,7 @@ module Crypto.Error.Types
import qualified Control.Exception as E
import Data.Data
import Foundation.Monad (MonadFailure(..))
import Basement.Monad (MonadFailure(..))
import Crypto.Internal.Imports
-- | Enumeration of all possible errors that can be found in this library

View File

@ -20,8 +20,8 @@ import Crypto.Internal.Imports
import Crypto.Internal.ByteArray (ByteArrayAccess, Bytes)
import qualified Crypto.Internal.ByteArray as B
import Foreign.Ptr (Ptr)
import qualified Foundation.Array as F
import qualified Foundation as F
import Basement.UArray (UArray)
import Basement.NormalForm (deepseq)
import GHC.TypeLits (Nat)
-- | Class representing hashing algorithms.
@ -70,11 +70,11 @@ newtype Context a = Context Bytes
--
-- Creating a digest from a bytearray is also possible with function
-- 'Crypto.Hash.digestFromByteString'.
newtype Digest a = Digest (F.UArray Word8)
newtype Digest a = Digest (UArray Word8)
deriving (Eq,Ord,ByteArrayAccess)
instance NFData (Digest a) where
rnf (Digest u) = u `F.deepseq` ()
rnf (Digest u) = u `deepseq` ()
instance Show (Digest a) where
show (Digest bs) = map (toEnum . fromIntegral)

View File

@ -226,8 +226,8 @@ Library
Crypto.Internal.Nat
Build-depends: base >= 4.6 && < 5
, bytestring
, memory >= 0.14.5
, foundation >= 0.0.8
, memory >= 0.14.10
, basement
, ghc-prim
ghc-options: -Wall -fwarn-tabs -optc-O3 -fno-warn-unused-imports
if os(linux)