coda-0.0.1: The coda compiler

Copyright(c) Edward Kmett 2017
LicenseBSD2
MaintainerEdward Kmett <ekmett@gmail.com>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Coda.Syntax.Dyck

Description

 

Synopsis

Documentation

data Dyck Source #

Dyck l ms r s k e

k indicates if the last token was a layout keyword, and if so can provide a numerical indicator as to which one. 0 means either no it wasn't or that we haven't seen a

Instances

Eq Dyck Source # 

Methods

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

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

Ord Dyck Source # 

Methods

compare :: Dyck -> Dyck -> Ordering #

(<) :: Dyck -> Dyck -> Bool #

(<=) :: Dyck -> Dyck -> Bool #

(>) :: Dyck -> Dyck -> Bool #

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

max :: Dyck -> Dyck -> Dyck #

min :: Dyck -> Dyck -> Dyck #

Read Dyck Source # 
Show Dyck Source # 

Methods

showsPrec :: Int -> Dyck -> ShowS #

show :: Dyck -> String #

showList :: [Dyck] -> ShowS #

Generic Dyck Source # 

Associated Types

type Rep Dyck :: * -> * #

Methods

from :: Dyck -> Rep Dyck x #

to :: Rep Dyck x -> Dyck #

Semigroup Dyck Source #

O(k) in the number of canceled contexts

Note: positions are not shifted, so you'll need to use this inside a semi-direct product with Delta.

Methods

(<>) :: Dyck -> Dyck -> Dyck #

sconcat :: NonEmpty Dyck -> Dyck #

stimes :: Integral b => b -> Dyck -> Dyck #

Monoid Dyck Source # 

Methods

mempty :: Dyck #

mappend :: Dyck -> Dyck -> Dyck #

mconcat :: [Dyck] -> Dyck #

Default Dyck Source # 

Methods

def :: Dyck

RelativeMonoid Dyck Source # 
Relative Dyck Source # 

Methods

rel :: Delta -> Dyck -> Dyck Source #

type Rep Dyck Source # 

token :: Dyck -> Token -> Dyck Source #

O(1)