diff options
author | Julien Dessaux | 2023-07-04 19:37:50 +0200 |
---|---|---|
committer | Julien Dessaux | 2023-07-04 19:37:50 +0200 |
commit | 78c5467c4ac39869314c686d1d026482e7b3fd8f (patch) | |
tree | 154bc89cd8f9ea87e93d7d638e41f6557daddf22 /haskell/src/SpaceTraders/Model/Nav.hs | |
parent | [haskell] Implemented contract (diff) | |
download | spacetraders-78c5467c4ac39869314c686d1d026482e7b3fd8f.tar.gz spacetraders-78c5467c4ac39869314c686d1d026482e7b3fd8f.tar.bz2 spacetraders-78c5467c4ac39869314c686d1d026482e7b3fd8f.zip |
[haskell] Implemented ship
Diffstat (limited to '')
-rw-r--r-- | haskell/src/SpaceTraders/Model/Nav.hs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/haskell/src/SpaceTraders/Model/Nav.hs b/haskell/src/SpaceTraders/Model/Nav.hs new file mode 100644 index 0000000..1c23ca1 --- /dev/null +++ b/haskell/src/SpaceTraders/Model/Nav.hs @@ -0,0 +1,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) |