Skip to content

Commit 6b4cb93

Browse files
committed
Expr.Types: Binding: mv standalone instances into list
1 parent 60c037d commit 6b4cb93

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

src/Nix/Expr/Types.hs

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -345,19 +345,12 @@ data Binding r
345345
--
346346
-- (2021-07-07 use details):
347347
-- Inherits the position of the first name through @unsafeGetAttrPos@. The position of the scope inherited from else - the position of the first member of the binds list.
348-
deriving (Generic, Generic1, Typeable, Data, Eq, Ord, Functor,
349-
Foldable, Traversable, Show, NFData, Hashable)
350-
351-
instance NFData1 Binding
352-
353-
instance Hashable1 Binding
354-
355-
instance Serialise r => Serialise (Binding r)
356-
357-
instance Binary a => Binary (Binding a)
358-
359-
instance ToJSON a => ToJSON (Binding a)
360-
instance FromJSON a => FromJSON (Binding a)
348+
deriving
349+
( Eq, Ord, Generic, Generic1
350+
, Typeable, Data, NFData, NFData1, Serialise, Binary, ToJSON, FromJSON
351+
, Functor, Foldable, Traversable
352+
, Show, Hashable, Hashable1
353+
)
361354

362355

363356
-- ** @NRecordType@

0 commit comments

Comments
 (0)