blob: 25c6e8f36f2a3599dfc983a050518b8ec8bd96cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
{- tuple utility functions
-
- Copyright 2017 Joey Hess <id@joeyh.name>
-
- License: BSD-2-clause
-}
module Utility.Tuple 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
|