Skip to content

Commit

Permalink
disable warning for orphan Hashable Free instance
Browse files Browse the repository at this point in the history
  • Loading branch information
byorgey committed Nov 5, 2024
1 parent 0409bfc commit d5e6ae5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/swarm-lang/Swarm/Language/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
{-# OPTIONS_GHC -fno-warn-orphans #-}

-- |
-- SPDX-License-Identifier: BSD-3-Clause
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d5e6ae5

Please sign in to comment.