compaREST-0.1.0.1: Compatibility checker for OpenAPI
Safe HaskellNone
LanguageHaskell2010

Data.OpenApi.Compare.Report.Jet

Synopsis

Documentation

newtype ReportJet f x Source #

Constructors

ReportJet (forall a b m. (Typeable (f a b), Alternative m, Monad m) => f a b -> m x) 

Instances

Instances details
Functor (ReportJet f) Source # 
Instance details

Defined in Data.OpenApi.Compare.Report.Jet

Methods

fmap :: (a -> b) -> ReportJet f a -> ReportJet f b #

(<$) :: a -> ReportJet f b -> ReportJet f a #

type ReportJet' f a = ReportJet f (Free (ReportJet f) a) Source #

class ConstructReportJet x f where Source #

A "jet" is a way of simplifying expressions from "outside". The "jetted" expressions should still be completely valid and correct without the jets. Jets just make the expression more "optimized" by identifying patterns and replacing the expressions with "better" ones that have the same sematics.

The term "jet" in this context was introduced in the Urbit project: https://urbit.org/docs/vere/jetting/

The pattern fits well for simplifying Behavior tree paths.

Instances

Instances details
ConstructReportJet Inlines (f :: k1 -> k2 -> Type) Source # 
Instance details

Defined in Data.OpenApi.Compare.Report.Jet

ConstructReportJet (Maybe Inlines) (f :: k1 -> k2 -> Type) Source # 
Instance details

Defined in Data.OpenApi.Compare.Report.Jet

(ConstructReportJet b f, JetArg a) => ConstructReportJet (a -> b) (f :: k1 -> k2 -> Type) Source # 
Instance details

Defined in Data.OpenApi.Compare.Report.Jet