hascalam-0.1.1.1: Haskell to and from Scalameta
Safe HaskellSafe-Inferred
LanguageGHC2021

HaScalaM.Classes.Enums

Documentation

class Tree t => Enumerator t Source #

Instances

Instances details
Enumerator SmEnumerator Source # 
Instance details

Defined in HaScalaM.Instances.Enums

class (Pat p, Term b, WithBody b t) => CaseGenerator p b t where Source #

Methods

patCG :: t -> p Source #

rhsCG :: t -> b Source #

Instances

Instances details
(Pat p, Term b) => CaseGenerator p b (SmCaseGeneratorE p b) Source # 
Instance details

Defined in HaScalaM.Instances.Enums

class (Pat p, Term b, WithBody b t) => Generator p b t where Source #

Methods

patG :: t -> p Source #

rhsG :: t -> b Source #

Instances

Instances details
(Pat p, Term b, WithBody (SmGeneratorE p b) b) => Generator p b (SmGeneratorE p b) Source # 
Instance details

Defined in HaScalaM.Instances.Enums

Methods

patG :: SmGeneratorE p b -> p Source #

rhsG :: SmGeneratorE p b -> b Source #

class (Tree t, Term b) => Guard b t where Source #

Methods

condG :: t -> b Source #

Instances

Instances details
Term b => Guard b (SmGuardE b) Source # 
Instance details

Defined in HaScalaM.Instances.Enums

Methods

condG :: SmGuardE b -> b Source #

class (Pat p, Term b, WithBody b t) => Val p b t where Source #

Methods

patV :: t -> p Source #

rhsV :: t -> b Source #

Instances

Instances details
(Pat p, Term b) => Val p b (SmValE p b) Source # 
Instance details

Defined in HaScalaM.Instances.Enums

Methods

patV :: SmValE p b -> p Source #

rhsV :: SmValE p b -> b Source #

class (Enumerator e, Tree w) => WithEnums e w where Source #

Methods

enums :: w -> [e] Source #

Instances

Instances details
(Enumerator e, Term t) => WithEnums e (SmForT e t) Source # 
Instance details

Defined in HaScalaM.Instances.Term

Methods

enums :: SmForT e t -> [e] Source #

(Enumerator e, Term t) => WithEnums e (SmForYieldT e t) Source # 
Instance details

Defined in HaScalaM.Instances.Term

Methods

enums :: SmForYieldT e t -> [e] Source #