Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Access of energy-specific APIs.
Documentation
runEnergy :: MonadIO m => IO AuthInfo -> EnergyID -> Energy m a -> m a Source #
Run a Energy Monad with the given Vehicle ID
siteData :: (FromJSON j, MonadIO m) => Energy m j Source #
Fetch the "live_status" describing the current active state of an energy site.
siteConfig :: (FromJSON j, MonadIO m) => Energy m j Source #
Fetch the "site_info" describing the basic configuration of an energy site.
Energy Monad for accessing energy-specific things.
Instances
MonadFail m => MonadFail (Energy m) Source # | |
Defined in Tesla.Energy | |
MonadIO m => MonadIO (Energy m) Source # | |
Defined in Tesla.Energy | |
Applicative m => Applicative (Energy m) Source # | |
Functor m => Functor (Energy m) Source # | |
Monad m => Monad (Energy m) Source # | |
MonadCatch m => MonadCatch (Energy m) Source # | |
MonadMask m => MonadMask (Energy m) Source # | |
MonadThrow m => MonadThrow (Energy m) Source # | |
Defined in Tesla.Energy | |
MonadLogger m => MonadLogger (Energy m) Source # | |
Defined in Tesla.Energy monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> Energy m () | |
MonadUnliftIO m => MonadUnliftIO (Energy m) Source # | |
Defined in Tesla.Energy withRunInIO :: ((forall a. Energy m a -> IO a) -> IO b) -> Energy m b |
Orphan instances
(Monad m, MonadIO m, MonadReader EnergyEnv m) => HasTeslaAuth m Source # | |