Module

Type.Regex.Parse

Package
purescript-typelevel-regex
Repository
thought2/purescript-typelevel-regex

#MkError Source

type MkError :: Doc -> Doctype MkError (err :: Doc) = Beside (Text "Regex Parse Error: ") err

#ErrorMissingClose Source

type ErrorMissingClose :: Doctype ErrorMissingClose = MkError (Text "Parenthesis mismatch: Missing \')\'")

#ErrorMissingOpen Source

type ErrorMissingOpen :: Doctype ErrorMissingOpen = MkError (Text "Parenthesis mismatch: Missing \'(\'")

#ErrorIllegalQuantification Source

#ErrorInvalidRange Source

type ErrorInvalidRange :: Doctype ErrorInvalidRange = MkError (Text "Invalid character range")

#UnexpectedEndOfCharClass Source

type UnexpectedEndOfCharClass :: Doctype UnexpectedEndOfCharClass = MkError (Text "Unexpected end of character class")

#ErrorUnexpectedEnd Source

type ErrorUnexpectedEnd :: Doctype ErrorUnexpectedEnd = Text "Regex Parse Error: Unexpected end"

#ParseRegex Source

class ParseRegex :: Symbol -> Regex -> Constraintclass ParseRegex (spec :: Symbol) (regex :: Regex) | spec -> regex

Instances

#parseRegex Source

parseRegex :: forall @spec regex. ParseRegex spec regex => Proxy regex

#ParseRegexAtDepth Source

class ParseRegexAtDepth :: Symbol -> Int -> Symbol -> Regex -> Constraintclass ParseRegexAtDepth (spec :: Symbol) (depth :: Int) (rest :: Symbol) (regex :: Regex) | spec depth -> rest regex

Instances

#ParseRegexGo Source

class ParseRegexGo :: Symbol -> Regex -> Int -> Symbol -> Regex -> Constraintclass ParseRegexGo (sym :: Symbol) (regexFrom :: Regex) (depth :: Int) (rest :: Symbol) (regexTo :: Regex) | sym regexFrom depth -> rest regexTo

Instances

#ParseRegexMatch Source

class ParseRegexMatch :: Symbol -> Symbol -> Regex -> Int -> Symbol -> Regex -> Constraintclass ParseRegexMatch (head :: Symbol) (tail :: Symbol) (regexFrom :: Regex) (depth :: Int) (rest :: Symbol) (regex :: Regex) | head tail regexFrom depth -> rest regex

Instances

#ParseCharacterClass Source

class ParseCharacterClass :: Symbol -> Symbol -> CharClass -> Boolean -> Constraintclass ParseCharacterClass (sym :: Symbol) (rest :: Symbol) (chars :: CharClass) (positive :: Boolean) | sym -> rest chars positive

Instances

#parseCharacterClass Source

parseCharacterClass :: forall @sym @rest @chars @positive. ParseCharacterClass sym rest chars positive => Unit

#ParseCharacterClassGo Source

class ParseCharacterClassGo :: Symbol -> CharClass -> Symbol -> Boolean -> CharClass -> Constraintclass ParseCharacterClassGo (sym :: Symbol) (charsIn :: CharClass) (rest :: Symbol) (positive :: Boolean) (chars :: CharClass) | sym charsIn -> rest positive chars

Instances

#ParseCharacterClassMatch Source

class ParseCharacterClassMatch :: Symbol -> Symbol -> CharClass -> Symbol -> Boolean -> CharClass -> Constraintclass ParseCharacterClassMatch (head :: Symbol) (tail :: Symbol) (charClassFrom :: CharClass) (rest :: Symbol) (positive :: Boolean) (charClassTo :: CharClass) | head tail charClassFrom -> rest positive charClassTo

Instances

#Increment Source

class Increment :: Int -> Int -> Constraintclass Increment (n :: Int) (n' :: Int) | n -> n'

Instances

#Decrement Source

class Decrement :: Int -> Int -> Constraintclass Decrement (n :: Int) (n' :: Int) | n -> n'

Instances

#ConsOrFail Source

class ConsOrFail :: Doc -> Symbol -> Symbol -> Symbol -> Constraintclass ConsOrFail (doc :: Doc) (head :: Symbol) (tail :: Symbol) (sym :: Symbol) | sym -> head tail

Instances

#ReverseRegex Source

class ReverseRegex :: Regex -> Regex -> Constraintclass ReverseRegex (regexFrom :: Regex) (regexOut :: Regex) | regexFrom -> regexOut

Instances

#ReverseRegexGo Source

class ReverseRegexGo :: Regex -> Regex -> Regex -> Constraintclass ReverseRegexGo (regex :: Regex) (regexFrom :: Regex) (regexTo :: Regex) | regex regexFrom -> regexTo

Instances