Skip to content

Commit b5ef442

Browse files
committed
Expr/Types: rm orphan instances Hashable1 {NonEmpty,NExprF,Binding}
1 parent 323c312 commit b5ef442

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
@@ -213,8 +208,6 @@ data Binding r
213208
deriving (Generic, Generic1, Typeable, Data, Ord, Eq, Functor,
214209
Foldable, Traversable, Show, NFData, Hashable)
215210

216-
instance Hashable1 Binding
217-
218211
instance NFData1 Binding
219212

220213
#ifdef MIN_VERSION_serialise

0 commit comments

Comments
 (0)