HORIZON HASKELLDocslts/ghc-10.0.x77a86622026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Modulesdl2-2.5.6.1Haskell2010

SDL.Power

Contents
  1. Power Status
Synopsis
  • Packagesdl2-2.5.6.1
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourcePower.hs

Power Status

datadata PowerState

Information about the power supply for the user's environment

Constructors

Instances6Eq, Ord, Read, Show, Generic, Rep
datadata BatteryState

Information on battery consumption for battery powered devices

Constructors

  • Draining

    The battery is currently being drained.

  • Charged

    The battery is fully charged.

  • Charging

    The device is plugged in and the battery is charging.

Instances9Bounded, Enum, Eq, Data, Ord, Read, …
datadata Charge

Information about how much charge a battery has.

Constructors

Instances6Eq, Ord, Read, Show, Generic, Rep