Skip to content

Commit 390c3b3

Browse files
committed
Rename Type to Component.
1 parent 3e2dec6 commit 390c3b3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Starlight/Game.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import Starlight.Input
3737
import Starlight.Integration
3838
import Starlight.Physics
3939
import Starlight.Radar
40-
import Starlight.Ship hiding (Type(..))
40+
import Starlight.Ship hiding (Component(..))
4141
import qualified Starlight.Sol as Sol
4242
import Starlight.System as System
4343
import Starlight.Time

src/Starlight/Integration.hs

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import Starlight.Identifier
4444
import Starlight.Input
4545
import Starlight.Physics
4646
import Starlight.Radar
47-
import Starlight.Ship hiding (Type(..))
47+
import Starlight.Ship hiding (Component(..))
4848
import Starlight.System as System
4949
import Starlight.Time
5050
import Starlight.Weapon.Laser as Laser

src/Starlight/Ship.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module Starlight.Ship
66
, colour_
77
, armour_
88
, radar_
9-
, Type(..)
9+
, Component(..)
1010
) where
1111

1212
import Control.Lens (Lens')
@@ -33,7 +33,7 @@ radar_ :: Lens' Ship Radar
3333
radar_ = field @"radar"
3434

3535

36-
data Type
36+
data Component
3737
= Cargo
3838
| Engine
3939
| Fuel

0 commit comments

Comments
 (0)