Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
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
.
- data PersonsOnBoard
- data Transmitter
- data SurvivalEquipment
- data LifeJacket
- data Dinghies
- data SupplementaryInformation = SupplementaryInformation {}
- emptySupplementaryInformation :: SupplementaryInformation
- withFuelEndurance :: Hhmm -> SupplementaryInformation -> SupplementaryInformation
- withPersonsOnBoard :: PersonsOnBoard -> SupplementaryInformation -> SupplementaryInformation
- withAvailableTransmitters :: [Transmitter] -> SupplementaryInformation -> SupplementaryInformation
- withSurvivalEquipments :: [SurvivalEquipment] -> SupplementaryInformation -> SupplementaryInformation
- withAircraftDescription :: FreeText -> SupplementaryInformation -> SupplementaryInformation
- withLifeJackets :: [LifeJacket] -> SupplementaryInformation -> SupplementaryInformation
- withDinghies :: Dinghies -> SupplementaryInformation -> SupplementaryInformation
- withOtherRemarks :: FreeText -> SupplementaryInformation -> SupplementaryInformation
- withPilotInCommand :: FreeText -> SupplementaryInformation -> SupplementaryInformation
- mkPersonsOnBoard :: MonadFail m => Int -> m PersonsOnBoard
- mkDinghies :: MonadFail m => Maybe Int -> Maybe Int -> Bool -> Maybe String -> m Dinghies
Data
data PersonsOnBoard Source #
Persons on board the aircraft.
data Transmitter Source #
Transmitter.
data SurvivalEquipment Source #
Survival equipment.
data LifeJacket Source #
Life Jacket.
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.
SupplementaryInformation | |
|
Builders
emptySupplementaryInformation :: SupplementaryInformation Source #
Returns empty SupplementaryInformation
.
withFuelEndurance :: Hhmm -> SupplementaryInformation -> SupplementaryInformation Source #
Sets the aircraft fuel endurance.
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.
withAircraftDescription :: FreeText -> SupplementaryInformation -> SupplementaryInformation Source #
Sets the aircraft description.
withLifeJackets :: [LifeJacket] -> SupplementaryInformation -> SupplementaryInformation Source #
Sets the details of the life jackets available on board the aircraft.
withDinghies :: Dinghies -> SupplementaryInformation -> SupplementaryInformation Source #
Sets the dinghies.
withOtherRemarks :: FreeText -> SupplementaryInformation -> SupplementaryInformation Source #
Sets the othe remarks.
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].