Module

Type.Regex.Compile

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

#MkError Source

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

#ErrorUnexpected Source

type ErrorUnexpected :: Doctype ErrorUnexpected = MkError (Text "Unexpected error. Please report this as a bug.")

#ErrorRange Source

type ErrorRange :: Doctype ErrorRange = MkError (Text "Range error")

#CompileRegex Source

class CompileRegex :: Regex -> Regex -> Constraintclass CompileRegex (cst :: Regex) (regex :: Regex) | cst -> regex

Instances

#CompileCharClass Source

class CompileCharClass :: CharClass -> Boolean -> Regex -> Constraintclass CompileCharClass (charClass :: CharClass) (positive :: Boolean) (regex :: Regex) | charClass positive -> regex

Instances

#CompileCharClassGo Source

class CompileCharClassGo :: CharClass -> Symbol -> Symbol -> Constraintclass CompileCharClassGo (charClass :: CharClass) (charsFrom :: Symbol) (charsTo :: Symbol) | charClass charsFrom -> charsTo

Instances

#GetCharRange Source

class GetCharRange :: Int -> Int -> Symbol -> Constraintclass GetCharRange (start :: Int) (end :: Int) (chars :: Symbol) | start end -> chars

Instances

#GetCharRangeGuard Source

class GetCharRangeGuard :: Int -> Int -> Symbol -> Constraintclass GetCharRangeGuard (start :: Int) (end :: Int) (chars :: Symbol) | start end -> chars

Instances

#GetCharRangeGuardResult Source

class GetCharRangeGuardResult :: Ordering -> Int -> Int -> Symbol -> Constraintclass GetCharRangeGuardResult (result :: Ordering) (start :: Int) (end :: Int) (chars :: Symbol) | result start end -> chars

Instances

#GetCharRangeGo Source

class GetCharRangeGo :: Int -> Int -> Symbol -> Symbol -> Constraintclass GetCharRangeGo (start :: Int) (end :: Int) (charsIn :: Symbol) (chars :: Symbol) | start end charsIn -> chars

Instances