start with options
This commit is contained in:
parent
df666c5175
commit
0243029d89
1 changed files with 15 additions and 0 deletions
15
src-server/Server/Types.hs
Normal file
15
src-server/Server/Types.hs
Normal file
|
@ -0,0 +1,15 @@
|
|||
{-# LANGUAGE DeriveGeneric #-}
|
||||
module Server.Options where
|
||||
|
||||
import qualified Data.Aeson as Aeson
|
||||
import GHC.Generics
|
||||
|
||||
data Options = Options
|
||||
{ optSocketPath :: FilePath
|
||||
, optMapRows :: Int
|
||||
, optMapColumns :: Int
|
||||
, optSpawnerProbability :: Float
|
||||
}
|
||||
deriving (Show, Generic)
|
||||
|
||||
instance Aeson.FromJSON Options
|
Loading…
Reference in a new issue