Repository navigation
Expand file tree
/
Copy pathPrelude.hs
More file actions
61 lines (60 loc) · 1.95 KB
/
Copy pathPrelude.hs
File metadata and controls
61 lines (60 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
{-# LANGUAGE NoImplicitPrelude #-}
-----------------------------------------------------------------------------
-- |
-- License : BSD-3-Clause
-- Maintainer : Oleg Grenrus <oleg.grenrus@iki.fi>
--
-- This module may change between minor releases. Do not rely on its contents.
module GitHub.Internal.Prelude (
module Prelude.Compat,
-- * Commonly used types
UTCTime,
HashMap,
Text, pack, unpack,
Vector,
-- * Commonly used typeclasses
Binary,
Data, Typeable,
Generic,
Hashable(..),
IsString(..),
NFData(..), genericRnf,
Semigroup(..),
-- * Aeson
FromJSON(..), ToJSON(..), Value(..), Object,
emptyObject,
encode,
withText, withObject, (.:), (.:?), (.!=), (.=), object, typeMismatch,
-- * Control.Applicative
(<|>),
-- * Data.Maybe
catMaybes,
-- * Data.List
intercalate, toList,
-- * Data.Time.ISO8601
formatISO8601,
) where
import Control.Applicative ((<|>))
import Control.DeepSeq (NFData (..))
import Control.DeepSeq.Generics (genericRnf)
import Data.Aeson
(FromJSON (..), Object, ToJSON (..), Value (..), encode, object,
withObject, withText, (.!=), (.:), (.:?), (.=))
import Data.Aeson.Types (emptyObject, typeMismatch)
import Data.Binary (Binary)
import Data.Binary.Instances ()
import Data.Data (Data, Typeable)
import Data.Foldable (toList)
import Data.Hashable (Hashable (..))
import Data.HashMap.Strict (HashMap)
import Data.List (intercalate)
import Data.Maybe (catMaybes)
import Data.Semigroup (Semigroup (..))
import Data.String (IsString (..))
import Data.Text (Text, pack, unpack)
import Data.Time.Compat (UTCTime)
import Data.Time.ISO8601 (formatISO8601)
import Data.Vector (Vector)
import Data.Vector.Instances ()
import GHC.Generics (Generic)
import Prelude.Compat