Skip to content

Commit

Permalink
Add orphan NoThunks (Sum a) instance
Browse files Browse the repository at this point in the history
  • Loading branch information
jasagredo committed Apr 16, 2024
1 parent 9a1617b commit e576102
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -22,6 +22,7 @@ import Data.Bimap (Bimap)
import qualified Data.Bimap as Bimap
import Data.IntPSQ (IntPSQ)
import qualified Data.IntPSQ as PSQ
import Data.Monoid
import Data.SOP.BasicFunctors
import NoThunks.Class (InspectHeap (..), InspectHeapNamed (..),
NoThunks (..), OnlyCheckWhnfNamed (..), allNoThunks,
Expand Down Expand Up @@ -98,6 +99,8 @@ instance NoThunks a => NoThunks (K a b) where
showTypeOf _ = showTypeOf (Proxy @a)
wNoThunks ctxt (K a) = wNoThunks ("K":ctxt) a

instance NoThunks a => NoThunks (Sum a)

{-------------------------------------------------------------------------------
fs-api
-------------------------------------------------------------------------------}
Expand Down

0 comments on commit e576102

Please sign in to comment.