blob: 542e6c7260167a091906dc90639e152e0193205d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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
| InitEmpty (Either Text (Maybe Text))
deriving (Show, Generic)
instance FromJSON InitResult
instance ToJSON InitResult
|