Skip to content

Commit

Permalink
Remove Generic1 instance for NKeyName
Browse files Browse the repository at this point in the history
See #225
  • Loading branch information
expipiplus1 authored and jwiegley committed Oct 27, 2020
1 parent 820499d commit 4202bac
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Nix/Expr/Types.hs
Expand Up @@ -363,11 +363,6 @@ instance Hashable SourcePos where
hashWithSalt salt (SourcePos f l c) =
salt `hashWithSalt` f `hashWithSalt` l `hashWithSalt` c

instance Generic1 NKeyName where
type Rep1 NKeyName = NKeyName
from1 = id
to1 = id

instance NFData1 NKeyName where
liftRnf _ (StaticKey !_ ) = ()
liftRnf _ (DynamicKey (Plain !_) ) = ()
Expand Down

0 comments on commit 4202bac

Please sign in to comment.