hgeometry-debugger:api
Safe HaskellNone
LanguageGHC2024

Debugger.API

Documentation

type API = ("drawing" :> Get '[JSON] Drawings) :<|> (("drawLayer" :> (ReqBody '[JSON] (LayerName, String, Drawing) :> Put '[JSON] ())) :<|> (("clearLayer" :> (ReqBody '[PlainText] LayerName :> Put '[JSON] ())) :<|> ("clear" :> Put '[JSON] ()))) Source #

type ServerAPI = ("pub" :> Raw) :<|> API Source #

newtype Drawing Source #

Constructors

Drawing MisoString 

Instances

Instances details
FromJSON Drawing Source # 
Instance details

Defined in Debugger.API

ToJSON Drawing Source # 
Instance details

Defined in Debugger.API

Generic Drawing Source # 
Instance details

Defined in Debugger.API

Associated Types

type Rep Drawing 
Instance details

Defined in Debugger.API

type Rep Drawing = D1 ('MetaData "Drawing" "Debugger.API" "hgeometry-debugger-1.0.0.0-inplace-api" 'True) (C1 ('MetaCons "Drawing" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MisoString)))
Show Drawing Source # 
Instance details

Defined in Debugger.API

Eq Drawing Source # 
Instance details

Defined in Debugger.API

FromJSON Drawing Source # 
Instance details

Defined in Debugger.API

ToJSON Drawing Source # 
Instance details

Defined in Debugger.API

Methods

toJSON :: Drawing -> Value Source #

type Rep Drawing Source # 
Instance details

Defined in Debugger.API

type Rep Drawing = D1 ('MetaData "Drawing" "Debugger.API" "hgeometry-debugger-1.0.0.0-inplace-api" 'True) (C1 ('MetaCons "Drawing" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MisoString)))

Orphan instances

FromJSON a => FromJSON (MisoAeson a) Source # 
Instance details

ToJSON a => ToJSON (MisoAeson a) Source # 
Instance details

(FromJSONKey k, Ord k, FromJSON v) => FromJSON (Map k v) Source # 
Instance details

Methods

parseJSON :: Value -> Parser (Map k v) Source #

(ToJSONKey k, ToJSON k, ToJSON v) => ToJSON (Map k v) Source # 
Instance details

Methods

toJSON :: Map k v -> Value Source #