module Common.Model.InitResult
  ( InitResult(..)
  ) where

import           Data.Aeson        (FromJSON, ToJSON)
import           Data.Text         (Text)
import           GHC.Generics      (Generic)

import           Common.Model.Init (Init)

data InitResult =
  InitSuccess Init
  | InitError Text
  | InitEmpty
  deriving (Show, Generic)

instance FromJSON InitResult
instance ToJSON InitResult