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 @@ -537,7 +537,6 @@ instance ToJSON Pos where
537537instance ToJSON SourcePos
538538instance ToJSON a => ToJSON (NKeyName a )
539539instance ToJSON a => ToJSON (Params a )
540- instance ToJSON NAtom
541540instance ToJSON NUnaryOp
542541instance ToJSON NBinaryOp
543542instance ToJSON NRecordType
@@ -551,7 +550,6 @@ instance FromJSON Pos where
551550instance FromJSON SourcePos
552551instance FromJSON a => FromJSON (NKeyName a )
553552instance FromJSON a => FromJSON (Params a )
554- instance FromJSON NAtom
555553instance FromJSON NUnaryOp
556554instance FromJSON NBinaryOp
557555instance FromJSON NRecordType
You can’t perform that action at this time.
0 commit comments