diff options
author | 2017-05-15 18:10:13 -0400 | |
---|---|---|
committer | 2017-05-15 21:36:03 -0400 | |
commit | 973180b077e60b5d12d7c57d926878d11d7f2105 (patch) | |
tree | 7d3bc5e651d330c1945c81f356b59eca90e73ea2 /Utility/Tuple.hs | |
parent | 0d85a42333484e1acb8e4942a619087768bc62fb (diff) |
stop using MissingH for MD5
Cryptonite is faster and allocates less, and I want to get rid of
MissingH use.
Note that the new dependency on memory is free; it's a dependency of
cryptonite.
This commit was supported by the NSF-funded DataLad project.
Diffstat (limited to 'Utility/Tuple.hs')
-rw-r--r-- | Utility/Tuple.hs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Utility/Tuple.hs b/Utility/Tuple.hs new file mode 100644 index 000000000..78dd5d0c9 --- /dev/null +++ b/Utility/Tuple.hs @@ -0,0 +1,15 @@ +{- tuple utility functions + - + - Copyright 2017 Joey Hess <id@joeyh.name> + - + - License: BSD-2-clause + -} + +fst3 :: (a,b,c) -> a +fst3 (a,b,c) = a + +snd3 :: (a,b,c) -> b +snd3 (a,b,c) = b + +thd3 :: (a,b,c) -> c +thd3 (a,b,c) = c |