HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulesdl2-2.5.5.0Haskell2010

SDL.Power

  • 3 types
  • 1 value
  • Packagesdl2-2.5.5.0
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourcePower.hs

Power Status

4 declarations
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