File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,13 @@ import Codec.Serialise
1111#endif
1212import Control.DeepSeq
1313import Data.Data
14- import Data.Fixed (mod' )
14+ import Data.Fixed ( mod' )
1515import Data.Hashable
1616import Data.Text ( Text
1717 , pack
1818 )
1919import GHC.Generics
20+ import Data.Binary ( Binary )
2021
2122-- | Atoms are values that evaluate to themselves. This means that
2223-- they appear in both the parsed AST (in the form of literals) and
@@ -40,6 +41,8 @@ data NAtom
4041instance Serialise NAtom
4142#endif
4243
44+ instance Binary NAtom
45+
4346-- | Translate an atom into its nix representation.
4447atomText :: NAtom -> Text
4548atomText (NURI t) = t
Original file line number Diff line number Diff line change @@ -530,7 +530,6 @@ instance Binary Pos where
530530instance Binary SourcePos
531531instance Binary a => Binary (NKeyName a )
532532instance Binary a => Binary (Params a )
533- instance Binary NAtom
534533instance Binary NUnaryOp
535534instance Binary NBinaryOp
536535instance Binary NRecordType
You can’t perform that action at this time.
0 commit comments