Skip to content

Commit 8d26c16

Browse files
committed
Expr.Types: NUnaryOP: mv standalone instances into list
1 parent 52c90a6 commit 8d26c16

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/Nix/Expr/Types.hs

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -373,15 +373,11 @@ data NRecordType
373373
data NUnaryOp
374374
= NNeg -- ^ @-@
375375
| NNot -- ^ @!@
376-
deriving (Eq, Ord, Enum, Bounded, Generic, Typeable, Data, Show, Read,
377-
NFData, Hashable)
378-
379-
instance Serialise NUnaryOp
380-
381-
instance Binary NUnaryOp
382-
383-
instance ToJSON NUnaryOp
384-
instance FromJSON NUnaryOp
376+
deriving
377+
( Eq, Ord, Enum, Bounded, Generic
378+
, Typeable, Data, NFData, Serialise, Binary, ToJSON, FromJSON
379+
, Show, Read, Hashable
380+
)
385381

386382

387383
-- ** @NBinaryOp@

0 commit comments

Comments
 (0)