rollbar-hs-0.3.1.0: Core Rollbar data types and APIs.

Copyright(c) Hardy Jones 2017
LicenseBSD3
Maintainerjones3.hardy@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Rollbar.Item.Hardcoded

Description

Probably this could live outside the package...

Synopsis

Documentation

data Hardcoded (symbol :: Symbol) Source #

This is basically Proxy with the variable restricted to Symbol. It's mostly useful so a value can be insert into a JSON blob easily.

Constructors

Hardcoded 
Instances
Eq (Hardcoded symbol) Source # 
Instance details

Defined in Rollbar.Item.Hardcoded

Methods

(==) :: Hardcoded symbol -> Hardcoded symbol -> Bool #

(/=) :: Hardcoded symbol -> Hardcoded symbol -> Bool #

Show (Hardcoded symbol) Source # 
Instance details

Defined in Rollbar.Item.Hardcoded

Methods

showsPrec :: Int -> Hardcoded symbol -> ShowS #

show :: Hardcoded symbol -> String #

showList :: [Hardcoded symbol] -> ShowS #

Generic (Hardcoded symbol) Source # 
Instance details

Defined in Rollbar.Item.Hardcoded

Associated Types

type Rep (Hardcoded symbol) :: * -> * #

Methods

from :: Hardcoded symbol -> Rep (Hardcoded symbol) x #

to :: Rep (Hardcoded symbol) x -> Hardcoded symbol #

KnownSymbol symbol => ToJSON (Hardcoded symbol) Source # 
Instance details

Defined in Rollbar.Item.Hardcoded

Methods

toJSON :: Hardcoded symbol -> Value #

toEncoding :: Hardcoded symbol -> Encoding #

toJSONList :: [Hardcoded symbol] -> Value #

toEncodingList :: [Hardcoded symbol] -> Encoding #

KnownSymbol symbol => FromJSON (Hardcoded symbol) Source # 
Instance details

Defined in Rollbar.Item.Hardcoded

Methods

parseJSON :: Value -> Parser (Hardcoded symbol) #

parseJSONList :: Value -> Parser [Hardcoded symbol] #

type Rep (Hardcoded symbol) Source # 
Instance details

Defined in Rollbar.Item.Hardcoded

type Rep (Hardcoded symbol) = D1 (MetaData "Hardcoded" "Rollbar.Item.Hardcoded" "rollbar-hs-0.3.1.0-AHXin9WUqD3IOtR3mTqHpy" False) (C1 (MetaCons "Hardcoded" PrefixI False) (U1 :: * -> *))