From d5e6ae59eca05db38947e0852797c0736ea37b4a Mon Sep 17 00:00:00 2001 From: Brent Yorgey Date: Tue, 5 Nov 2024 17:50:51 -0600 Subject: [PATCH] disable warning for orphan Hashable Free instance --- src/swarm-lang/Swarm/Language/Types.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/swarm-lang/Swarm/Language/Types.hs b/src/swarm-lang/Swarm/Language/Types.hs index 289b5e2c6..3ef4e05ae 100644 --- a/src/swarm-lang/Swarm/Language/Types.hs +++ b/src/swarm-lang/Swarm/Language/Types.hs @@ -4,6 +4,7 @@ {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE UndecidableInstances #-} +{-# OPTIONS_GHC -fno-warn-orphans #-} -- | -- SPDX-License-Identifier: BSD-3-Clause @@ -313,7 +314,7 @@ instance PrettyPrec IntVar where -- working with 'UType' as if it were defined directly. type UType = Free TypeF IntVar --- XXX orphan instance +-- orphan instance instance (Eq1 f, Hashable x, Hashable (f (Free f x))) => Hashable (Free f x) -- | A generic /fold/ for things defined via 'Free' (including, in