mirror of
https://github.com/github/semantic.git
synced 2024-12-28 17:32:05 +03:00
Don’t define an orphan Hashable1 instance for NonEmpty.
This commit is contained in:
parent
d9aff05870
commit
cbc2d82b55
@ -1,6 +1,5 @@
|
||||
{-# LANGUAGE DeriveAnyClass, DerivingVia #-}
|
||||
{-# OPTIONS_GHC -Wno-missing-export-lists #-}
|
||||
{-# OPTIONS_GHC -fno-warn-orphans #-} -- FIXME
|
||||
module Language.Python.Syntax where
|
||||
|
||||
import Prologue
|
||||
@ -187,14 +186,13 @@ instance Evaluatable Import where
|
||||
|
||||
unit
|
||||
|
||||
deriving instance Hashable1 NonEmpty
|
||||
|
||||
newtype QualifiedImport a = QualifiedImport { qualifiedImportFrom :: NonEmpty a }
|
||||
deriving (Declarations1, Diffable, Foldable, FreeVariables1, Functor, Generic1, Hashable1, ToJSONFields1, Traversable)
|
||||
deriving (Declarations1, Diffable, Foldable, FreeVariables1, Functor, Generic1, ToJSONFields1, Traversable)
|
||||
|
||||
instance Eq1 QualifiedImport where liftEq = genericLiftEq
|
||||
instance Ord1 QualifiedImport where liftCompare = genericLiftCompare
|
||||
instance Show1 QualifiedImport where liftShowsPrec = genericLiftShowsPrec
|
||||
instance Hashable1 QualifiedImport where liftHashWithSalt = foldl
|
||||
|
||||
-- import a.b.c
|
||||
instance Evaluatable QualifiedImport where
|
||||
|
Loading…
Reference in New Issue
Block a user