From 78c5467c4ac39869314c686d1d026482e7b3fd8f Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 4 Jul 2023 19:37:50 +0200 Subject: [haskell] Implemented ship --- haskell/src/SpaceTraders/Model/Nav.hs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 haskell/src/SpaceTraders/Model/Nav.hs (limited to 'haskell/src/SpaceTraders/Model/Nav.hs') 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) -- cgit v1.2.3