stratux-0.0.1: A library for stratux

Safe HaskellNone
LanguageHaskell2010

Data.Aviation.Stratux.Types.TargetType

Documentation

data TargetType Source

Constructors

ModeS 
Adsb 
Adsr 
TisbS 
Tisb 

Instances

Eq TargetType Source 
Ord TargetType Source 
Show TargetType Source 
ToJSON TargetType Source
>>> encode ModeS
"0"
>>> encode Adsb
"1"
>>> encode Tisb
"4"
FromJSON TargetType Source
>>> decode "0" :: Maybe TargetType
Just ModeS
>>> decode "1" :: Maybe TargetType
Just Adsb
>>> decode "4" :: Maybe TargetType
Just Tisb
>>> decode "5" :: Maybe TargetType
Nothing
AsTargetTypeNum TargetType Source 
AsTargetType TargetType Source 

class AsTargetType r where Source

Minimal complete definition

Nothing

class AsTargetTypeNum a where Source

Minimal complete definition

Nothing

Instances

AsTargetTypeNum Scientific Source
>>> _TargetTypeNum # ModeS :: Scientific
0.0
>>> _TargetTypeNum # Adsb :: Scientific
1.0
>>> _TargetTypeNum # Tisb :: Scientific
4.0
AsTargetTypeNum TargetType Source