purescript-0.13.0: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell2010

Language.PureScript.AST.Operators

Description

Operators fixity and associativity

Synopsis

Documentation

type Precedence = Integer Source #

A precedence level for an infix operator

data Associativity Source #

Associativity for infix operators

Constructors

Infixl 
Infixr 
Infix 
Instances
Eq Associativity Source # 
Instance details

Defined in Language.PureScript.AST.Operators

Ord Associativity Source # 
Instance details

Defined in Language.PureScript.AST.Operators

Show Associativity Source # 
Instance details

Defined in Language.PureScript.AST.Operators

Generic Associativity Source # 
Instance details

Defined in Language.PureScript.AST.Operators

Associated Types

type Rep Associativity :: Type -> Type #

NFData Associativity Source # 
Instance details

Defined in Language.PureScript.AST.Operators

Methods

rnf :: Associativity -> () #

ToJSON Associativity Source # 
Instance details

Defined in Language.PureScript.AST.Operators

FromJSON Associativity Source # 
Instance details

Defined in Language.PureScript.AST.Operators

type Rep Associativity Source # 
Instance details

Defined in Language.PureScript.AST.Operators

type Rep Associativity = D1 (MetaData "Associativity" "Language.PureScript.AST.Operators" "purescript-0.13.0-1whdl2565Nb1wvlLK7uK18" False) (C1 (MetaCons "Infixl" PrefixI False) (U1 :: Type -> Type) :+: (C1 (MetaCons "Infixr" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Infix" PrefixI False) (U1 :: Type -> Type)))

data Fixity Source #

Fixity data for infix operators

Instances
Eq Fixity Source # 
Instance details

Defined in Language.PureScript.AST.Operators

Methods

(==) :: Fixity -> Fixity -> Bool #

(/=) :: Fixity -> Fixity -> Bool #

Ord Fixity Source # 
Instance details

Defined in Language.PureScript.AST.Operators

Show Fixity Source # 
Instance details

Defined in Language.PureScript.AST.Operators

Generic Fixity Source # 
Instance details

Defined in Language.PureScript.AST.Operators

Associated Types

type Rep Fixity :: Type -> Type #

Methods

from :: Fixity -> Rep Fixity x #

to :: Rep Fixity x -> Fixity #

NFData Fixity Source # 
Instance details

Defined in Language.PureScript.AST.Operators

Methods

rnf :: Fixity -> () #

ToJSON Fixity Source # 
Instance details

Defined in Language.PureScript.AST.Operators

type Rep Fixity Source # 
Instance details

Defined in Language.PureScript.AST.Operators

type Rep Fixity = D1 (MetaData "Fixity" "Language.PureScript.AST.Operators" "purescript-0.13.0-1whdl2565Nb1wvlLK7uK18" False) (C1 (MetaCons "Fixity" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Associativity) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Precedence)))