Skip to content

Instantly share code, notes, and snippets.

@mpickering
Created August 31, 2023 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mpickering/265dbb030b742180919bfa3c589dc3ce to your computer and use it in GitHub Desktop.
Save mpickering/265dbb030b742180919bfa3c589dc3ce to your computer and use it in GitHub Desktop.
{-# LANGUAGE GADTs, DeriveGeneric, StandaloneDeriving, ScopedTypeVariables,
GeneralizedNewtypeDeriving, ExistentialQuantification, RecordWildCards,
CPP #-}
{-# OPTIONS_GHC -fno-warn-name-shadowing -fno-warn-orphans #-}
-- |
-- Remote GHCi message types and serialization.
--
-- For details on Remote GHCi, see Note [Remote GHCi] in
-- compiler/GHC/Runtime/Interpreter.hs.
--
module Repro
where
import Data.Binary
import Data.Binary.Get
import Data.Binary.Put
import Data.ByteString (ByteString)
import Repro2
instance Binary WhyBlocked
{-# LANGUAGE DeriveGeneric #-}
module Repro2 where
import GHC.Generics
data WhyBlocked
= NotBlocked
| BlockedOnMVar
| BlockedOnMVarRead
| BlockedOnBlackHole
| BlockedOnRead
| BlockedOnWrite
| BlockedOnDelay
| BlockedOnSTM
| BlockedOnDoProc
| BlockedOnCCall
| BlockedOnCCall_Interruptible
| BlockedOnMsgThrowTo
| ThreadMigrating
deriving (Generic)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment