File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ import Data.Text ( Text
1818 )
1919import GHC.Generics
2020import Data.Binary ( Binary )
21+ import Data.Aeson.Types ( FromJSON , ToJSON )
2122
2223-- | Atoms are values that evaluate to themselves. This means that
2324-- they appear in both the parsed AST (in the form of literals) and
@@ -42,6 +43,8 @@ instance Serialise NAtom
4243#endif
4344
4445instance Binary NAtom
46+ instance ToJSON NAtom
47+ instance FromJSON NAtom
4548
4649-- | Translate an atom into its nix representation.
4750atomText :: NAtom -> Text
Original file line number Diff line number Diff line change @@ -543,7 +543,6 @@ instance ToJSON Pos where
543543instance ToJSON SourcePos
544544instance ToJSON a => ToJSON (NKeyName a )
545545instance ToJSON a => ToJSON (Params a )
546- instance ToJSON NAtom
547546instance ToJSON NUnaryOp
548547instance ToJSON NBinaryOp
549548instance ToJSON NRecordType
@@ -557,7 +556,6 @@ instance FromJSON Pos where
557556instance FromJSON SourcePos
558557instance FromJSON a => FromJSON (NKeyName a )
559558instance FromJSON a => FromJSON (Params a )
560- instance FromJSON NAtom
561559instance FromJSON NUnaryOp
562560instance FromJSON NBinaryOp
563561instance FromJSON NRecordType
You can’t perform that action at this time.
0 commit comments