Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data MixPanelError
- newtype AuthToken = AuthToken Text
- data Operation where
- type DistinctId = Text
- mkEnv :: AuthToken -> Manager -> Env
- data Env
- track :: Env -> Text -> Object -> IO (Either MixPanelError ())
- alias :: Env -> DistinctId -> Text -> IO (Either MixPanelError ())
- engage :: Env -> DistinctId -> Operation -> IO (Either MixPanelError ())
- engage' :: Env -> DistinctId -> (EngageData -> EngageData) -> Operation -> IO (Either MixPanelError ())
- tlsManagerSettings :: ManagerSettings
- newManager :: ManagerSettings -> IO Manager
Documentation
data MixPanelError Source #
Instances
Show MixPanelError Source # | |
Defined in MixPanel showsPrec :: Int -> MixPanelError -> ShowS # show :: MixPanelError -> String # showList :: [MixPanelError] -> ShowS # | |
Exception MixPanelError Source # | |
Defined in MixPanel |
type DistinctId = Text Source #
alias :: Env -> DistinctId -> Text -> IO (Either MixPanelError ()) Source #
Renames distinct id into alias id
engage :: Env -> DistinctId -> Operation -> IO (Either MixPanelError ()) Source #
engage' :: Env -> DistinctId -> (EngageData -> EngageData) -> Operation -> IO (Either MixPanelError ()) Source #
tlsManagerSettings :: ManagerSettings #
Default TLS-enabled manager settings
newManager :: ManagerSettings -> IO Manager #
Create a Manager
. The Manager
will be shut down automatically via
garbage collection.
Creating a new Manager
is a relatively expensive operation, you are
advised to share a single Manager
between requests instead.
The first argument to this function is often defaultManagerSettings
,
though add-on libraries may provide a recommended replacement.
Since 0.1.0