Skip to content

Commit 849fd1e

Browse files
committed
Expr/Types: rm orphan instances Hashable1 {NonEmpty,NExprF,Binding}
1 parent fb30e84 commit 849fd1e

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/Nix/Expr/Types.hs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,6 @@ type VarName = Text
7373
hashAt :: VarName -> Lens' (AttrSet v) (Maybe v)
7474
hashAt = flip alterF
7575

76-
-- unfortunate orphans
77-
instance Hashable1 NonEmpty
78-
7976
-- | The main Nix expression type. As it is polimophic, has a functor,
8077
-- which allows to traverse expressions and map functions over them.
8178
-- The actual 'NExpr' type is a fixed point of this functor, defined
@@ -163,8 +160,6 @@ data NExprF r
163160
deriving (Ord, Eq, Generic, Generic1, Typeable, Data, Functor,
164161
Foldable, Traversable, Show, NFData, Hashable)
165162

166-
instance Hashable1 NExprF
167-
168163
instance NFData1 NExprF
169164

170165
#ifdef MIN_VERSION_serialise
@@ -207,8 +202,6 @@ data Binding r
207202
deriving (Generic, Generic1, Typeable, Data, Ord, Eq, Functor,
208203
Foldable, Traversable, Show, NFData, Hashable)
209204

210-
instance Hashable1 Binding
211-
212205
instance NFData1 Binding
213206

214207
#ifdef MIN_VERSION_serialise

0 commit comments

Comments
 (0)