1
1
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:
Rob Rix 2019-10-25 14:03:01 -04:00
parent d9aff05870
commit cbc2d82b55
No known key found for this signature in database
GPG Key ID: F188A01508EA1CF7

View File

@ -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