diff options
author | Benjamin Barenblat <bbaren@google.com> | 2018-04-28 15:14:57 -0700 |
---|---|---|
committer | Benjamin Barenblat <bbaren@google.com> | 2018-04-28 15:14:57 -0700 |
commit | 6655ceffe46a642c9379c4327dd9c84e6bfd6977 (patch) | |
tree | 3951d9e2a226694d08793ae8dedbdf30ecde1ab1 /src/Data/Digest.hs | |
parent | 8fc0b121543b742f56f83c9eb74885e04d104778 (diff) |
Formatting pass
I don’t always like the output hindent gives, so reformat the project
to be a bit closer to what you see in published Haskell books and the
like.
Diffstat (limited to 'src/Data/Digest.hs')
-rw-r--r-- | src/Data/Digest.hs | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/src/Data/Digest.hs b/src/Data/Digest.hs index e0e0540..3bd042c 100644 --- a/src/Data/Digest.hs +++ b/src/Data/Digest.hs @@ -18,10 +18,7 @@ module Data.Digest , hash , md5 , sha1 - , sha224 - , sha256 - , sha384 - , sha512 + , sha224, sha256, sha384, sha512 ) where import qualified Data.ByteString as ByteString @@ -37,22 +34,12 @@ import Internal.Digest type LazyByteString = ByteString.Lazy.ByteString -md5 :: Algorithm -md5 = Algorithm evpMd5 - -sha1 :: Algorithm -sha1 = Algorithm evpSha1 - -sha224 :: Algorithm +md5, sha1, sha224, sha256, sha384, sha512 :: Algorithm +md5 = Algorithm evpMd5 +sha1 = Algorithm evpSha1 sha224 = Algorithm evpSha224 - -sha256 :: Algorithm sha256 = Algorithm evpSha256 - -sha384 :: Algorithm sha384 = Algorithm evpSha384 - -sha512 :: Algorithm sha512 = Algorithm evpSha512 -- | Hashes according to the given 'Algorithm'. |