Aeromess-0.1.0.0: Aeronautical Messages parsers and formatters

Safe HaskellSafe
LanguageHaskell2010

Data.Icao.SupplementaryInformation

Contents

Description

ICAO Field Type 19 - Supplementary information. This field is a collection of switches all optional, use the withXXXX functions to build a new instance starting from emptySupplementaryInformation.

Synopsis

Data

data LifeJacket Source #

Life Jacket.

Constructors

WithLight

life jacket equipped with lights.

WithFluorescein

life jacke equipped with fluorescein.

WithRadioUHF

life jacket radio equipped with UHF on frequency 243.0 MHz.

WithRadioVHF

life jacket radio is equipped with VHF on frequency 121.5 MHz.

data SupplementaryInformation Source #

Supplementary information data.

Constructors

SupplementaryInformation 

Fields

Builders

withPersonsOnBoard :: PersonsOnBoard -> SupplementaryInformation -> SupplementaryInformation Source #

Sets the number of persons on board the aircraft.

withAvailableTransmitters :: [Transmitter] -> SupplementaryInformation -> SupplementaryInformation Source #

Sets the available transmitters on board the aircraft.

withSurvivalEquipments :: [SurvivalEquipment] -> SupplementaryInformation -> SupplementaryInformation Source #

Sets the available survival equipements on board the aircraft.

withLifeJackets :: [LifeJacket] -> SupplementaryInformation -> SupplementaryInformation Source #

Sets the details of the life jackets available on board the aircraft.

withPilotInCommand :: FreeText -> SupplementaryInformation -> SupplementaryInformation Source #

Sets the detail of the pilot in command.

Smart constructors

mkPersonsOnBoard :: MonadFail m => Int -> m PersonsOnBoard Source #

PersonsOnBoard smart constructor. Fails if given number is not in range [1 .. 999].

mkDinghies :: MonadFail m => Maybe Int -> Maybe Int -> Bool -> Maybe String -> m Dinghies Source #

Dinghies smart constructor. Fails if dinghies details are invalid.