Skip to content

Commit 52c90a6

Browse files
committed
Expr.Types: NRecordType: mv standalone instances into list
1 parent 6b4cb93 commit 52c90a6

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/Nix/Expr/Types.hs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -360,15 +360,12 @@ data Binding r
360360
data NRecordType
361361
= NNonRecursive -- ^ > { ... }
362362
| NRecursive -- ^ > rec { ... }
363-
deriving (Eq, Ord, Enum, Bounded, Generic, Typeable, Data, Show, Read,
364-
NFData, Hashable)
365-
366-
instance Serialise NRecordType
367-
368-
instance Binary NRecordType
363+
deriving
364+
( Eq, Ord, Enum, Bounded, Generic
365+
, Typeable, Data, NFData, Serialise, Binary, ToJSON, FromJSON
366+
, Show, Read, Hashable
367+
)
369368

370-
instance ToJSON NRecordType
371-
instance FromJSON NRecordType
372369

373370
-- ** @NUnaryOp
374371

0 commit comments

Comments
 (0)