summaryrefslogtreecommitdiff
path: root/haskell/src/SpaceTraders/Model/Nav.hs
blob: 1c23ca1135062ec0899326a09c149b62941d5291 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE OverloadedStrings #-}

module SpaceTraders.Model.Nav
  ( Nav(..)
  ) where

import Data.Aeson
import GHC.Generics
import qualified Data.Text as T

import SpaceTraders.Model.Route

data Nav = Nav { flightMode :: T.Text
               , route :: Route
               , status :: T.Text
               , systemSymbol :: T.Text
               , waypointSymbol :: T.Text
               } deriving (FromJSON, Generic, Show, ToJSON)