Skip to content

Commit f9b3b99

Browse files
committed
Atoms: make imports explicit
1 parent d0d76f3 commit f9b3b99

File tree

1 file changed

+22
-9
lines changed

1 file changed

+22
-9
lines changed

src/Nix/Atoms.hs

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,22 @@
77
module Nix.Atoms where
88

99
#ifdef MIN_VERSION_serialise
10-
import Codec.Serialise
10+
import Codec.Serialise ( Serialise )
1111
#endif
12-
import Control.DeepSeq
13-
import Data.Data
12+
13+
import Control.DeepSeq ( NFData )
14+
import Data.Data ( Typeable
15+
, Data)
1416
import Data.Fixed ( mod' )
15-
import Data.Hashable
17+
import Data.Hashable ( Hashable )
1618
import Data.Text ( Text
1719
, pack
1820
)
19-
import GHC.Generics
21+
import GHC.Generics ( Generic )
2022
import Data.Binary ( Binary )
21-
import Data.Aeson.Types ( FromJSON, ToJSON )
23+
import Data.Aeson.Types ( FromJSON
24+
, ToJSON
25+
)
2226

2327
-- | Atoms are values that evaluate to themselves. This means that
2428
-- they appear in both the parsed AST (in the form of literals) and
@@ -35,8 +39,17 @@ data NAtom
3539
| NBool Bool
3640
-- | Null values. There's only one of this variant: @null@.
3741
| NNull
38-
deriving (Eq, Ord, Generic, Typeable, Data, Show, Read, NFData,
39-
Hashable)
42+
deriving
43+
( Eq
44+
, Ord
45+
, Generic
46+
, Typeable
47+
, Data
48+
, Show
49+
, Read
50+
, NFData
51+
, Hashable
52+
)
4053

4154
#ifdef MIN_VERSION_serialise
4255
instance Serialise NAtom
@@ -46,7 +59,7 @@ instance Binary NAtom
4659
instance ToJSON NAtom
4760
instance FromJSON NAtom
4861

49-
-- | Translate an atom into its nix representation.
62+
-- | Translate an atom into its Nix representation.
5063
atomText :: NAtom -> Text
5164
atomText (NURI t) = t
5265
atomText (NInt i) = pack (show i)

0 commit comments

Comments
 (0)