blob: f4c08a9d2780b1452feca98111e916efef91af68 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
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
|