stratux-types-0.0.10: A library for reading JSON output from stratux

Safe HaskellNone
LanguageHaskell2010

Data.Aviation.Stratux.Types.TargetType

Documentation

data TargetType Source #

Constructors

ModeS 
Adsb 
Adsr 
TisbS 
Tisb 
Instances
Eq TargetType Source # 
Instance details

Defined in Data.Aviation.Stratux.Types.TargetType

Ord TargetType Source # 
Instance details

Defined in Data.Aviation.Stratux.Types.TargetType

Show TargetType Source # 
Instance details

Defined in Data.Aviation.Stratux.Types.TargetType

ToJSON TargetType Source #
>>> encode ModeS
"0"
>>> encode Adsb
"1"
>>> encode Tisb
"4"
Instance details

Defined in Data.Aviation.Stratux.Types.TargetType

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
Instance details

Defined in Data.Aviation.Stratux.Types.TargetType

AsTargetType TargetType Source # 
Instance details

Defined in Data.Aviation.Stratux.Types.TargetType

class AsTargetType r where Source #

Minimal complete definition

_TargetType

Instances
AsTargetType Double Source #
>>> _TargetType # ModeS :: Double
0.0
>>> _TargetType # Adsb :: Double
1.0
>>> _TargetType # Tisb :: Double
4.0
Instance details

Defined in Data.Aviation.Stratux.Types.TargetType

AsTargetType Float Source #
>>> _TargetType # ModeS :: Float
0.0
>>> _TargetType # Adsb :: Float
1.0
>>> _TargetType # Tisb :: Float
4.0
Instance details

Defined in Data.Aviation.Stratux.Types.TargetType

AsTargetType Int Source #
>>> _TargetType # ModeS :: Int
0
>>> _TargetType # Adsb :: Int
1
>>> _TargetType # Tisb :: Int
4
Instance details

Defined in Data.Aviation.Stratux.Types.TargetType

AsTargetType Integer Source #
>>> _TargetType # ModeS :: Integer
0
>>> _TargetType # Adsb :: Integer
1
>>> _TargetType # Tisb :: Integer
4
Instance details

Defined in Data.Aviation.Stratux.Types.TargetType

AsTargetType Word Source #
>>> _TargetType # ModeS :: Word
0
>>> _TargetType # Adsb :: Word
1
>>> _TargetType # Tisb :: Word
4
Instance details

Defined in Data.Aviation.Stratux.Types.TargetType

AsTargetType Scientific Source #
>>> _TargetType # ModeS :: Scientific
0.0
>>> _TargetType # Adsb :: Scientific
1.0
>>> _TargetType # Tisb :: Scientific
4.0
Instance details

Defined in Data.Aviation.Stratux.Types.TargetType

AsTargetType TargetType Source # 
Instance details

Defined in Data.Aviation.Stratux.Types.TargetType