1.1 KiB
1.1 KiB
Heroku.Types
This module defines some essential types the Heroku Partner API uses.
Module Header
{-# LANGUAGE DeriveGeneric #-}
-- | This file is a literate haskell document. Please see the source code for more information.
module Heroku.Types
import Data.Aeson
import Data.Text
import GHC.Generics
Provision Request
This datatype is defined here.
data Provision = Provision
{ heroku_id :: Text
, plan :: Text
, region :: Text
, callback_url :: Text
, options :: Object -- Generic "anything" for JSON data
, uuid :: Text
, log_input_url :: Text
} deriving (Read, Show, Eq, Generic)
instance ToJSON Provision
instance FromJSON Provision