| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Simplex.Messaging.Agent.Store.Shared
Documentation
data MigrationsToRun Source #
Constructors
| MTRUp [Migration] | |
| MTRDown [DownMigration] | |
| MTRNone |
Instances
| Show MigrationsToRun Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared Methods showsPrec :: Int -> MigrationsToRun -> ShowS show :: MigrationsToRun -> String showList :: [MigrationsToRun] -> ShowS | |
| Eq MigrationsToRun Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared Methods (==) :: MigrationsToRun -> MigrationsToRun -> Bool (/=) :: MigrationsToRun -> MigrationsToRun -> Bool | |
data DownMigration Source #
Constructors
| DownMigration | |
Instances
| Show DownMigration Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared Methods showsPrec :: Int -> DownMigration -> ShowS show :: DownMigration -> String showList :: [DownMigration] -> ShowS | |
| Eq DownMigration Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared | |
Constructors
| MTRENoDown | |
Fields
| |
| MTREDifferent | |
Fields
| |
Instances
| FromJSON MTRError Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared Methods parseJSON :: Value -> Parser MTRError parseJSONList :: Value -> Parser [MTRError] omittedField :: Maybe MTRError | |
| ToJSON MTRError Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared Methods toEncoding :: MTRError -> Encoding toJSONList :: [MTRError] -> Value toEncodingList :: [MTRError] -> Encoding | |
| Show MTRError Source # | |
| Eq MTRError Source # | |
mtrErrorDescription :: MTRError -> String Source #
data MigrationConfig Source #
Constructors
| MigrationConfig | |
Fields
| |
data MigrationConfirmation Source #
Constructors
| MCYesUp | |
| MCYesUpDown | |
| MCConsole | |
| MCError |
Instances
| Show MigrationConfirmation Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared Methods showsPrec :: Int -> MigrationConfirmation -> ShowS show :: MigrationConfirmation -> String showList :: [MigrationConfirmation] -> ShowS | |
| Eq MigrationConfirmation Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared Methods (==) :: MigrationConfirmation -> MigrationConfirmation -> Bool (/=) :: MigrationConfirmation -> MigrationConfirmation -> Bool | |
| StrEncoding MigrationConfirmation Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared Methods strEncode :: MigrationConfirmation -> ByteString Source # strDecode :: ByteString -> Either String MigrationConfirmation Source # strP :: Parser MigrationConfirmation Source # | |
data MigrationError Source #
Constructors
| MEUpgrade | |
Fields
| |
| MEDowngrade | |
Fields
| |
| MigrationError | |
Instances
| ToJSON MigrationError Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared Methods toJSON :: MigrationError -> Value toEncoding :: MigrationError -> Encoding toJSONList :: [MigrationError] -> Value toEncodingList :: [MigrationError] -> Encoding omitField :: MigrationError -> Bool | |
| Show MigrationError Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared Methods showsPrec :: Int -> MigrationError -> ShowS show :: MigrationError -> String showList :: [MigrationError] -> ShowS | |
| Eq MigrationError Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared Methods (==) :: MigrationError -> MigrationError -> Bool (/=) :: MigrationError -> MigrationError -> Bool | |
data UpMigration Source #
Constructors
| UpMigration | |
Instances
| FromJSON UpMigration Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared Methods parseJSON :: Value -> Parser UpMigration parseJSONList :: Value -> Parser [UpMigration] omittedField :: Maybe UpMigration | |
| ToJSON UpMigration Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared Methods toJSON :: UpMigration -> Value toEncoding :: UpMigration -> Encoding toJSONList :: [UpMigration] -> Value toEncodingList :: [UpMigration] -> Encoding omitField :: UpMigration -> Bool | |
| Show UpMigration Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared Methods showsPrec :: Int -> UpMigration -> ShowS show :: UpMigration -> String showList :: [UpMigration] -> ShowS | |
| Eq UpMigration Source # | |
Defined in Simplex.Messaging.Agent.Store.Shared | |
migrationErrorDescription :: Bool -> MigrationError -> String Source #
toDownMigration :: Migration -> Maybe DownMigration Source #
upMigration :: Migration -> UpMigration Source #