summaryrefslogtreecommitdiff
path: root/Utility/Tuple.hs
blob: 9638bcc0d9a1639a7968ae56aba738b053a1121e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{- tuple utility functions
 -
 - Copyright 2017 Joey Hess <id@joeyh.name>
 -
 - License: BSD-2-clause
 -}

module Utility.Tuple (
	fst3,
	snd3,
	thd3,
) where

fst3 :: (a,b,c) -> a
fst3 (a,_,_) = a

snd3 :: (a,b,c) -> b
snd3 (_,b,_) = b

thd3 :: (a,b,c) -> c
thd3 (_,_,c) = c