Copyright | (c) Harm Brouwer and Noortje Venhuizen |
---|---|
License | Apache-2.0 |
Maintainer | me@hbrouwer.eu, n.j.venhuizen@rug.nl |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
PDRS pretty printing
Synopsis
- class ShowablePDRS p where
- pdrsResolve :: p -> Int -> Int -> PDRS
- data PDRSNotation p
- showPDRS :: PDRSNotation PDRS -> String
- printPDRS :: PDRS -> IO ()
- showAMerge :: PDRS -> PDRS -> String
- printAMerge :: PDRS -> PDRS -> IO ()
- showPMerge :: PDRS -> PDRS -> String
- printPMerge :: PDRS -> PDRS -> IO ()
- showPDRSBetaReduct :: ShowablePDRS p => (PDRS -> p) -> PDRS -> String
- printPDRSBetaReduct :: ShowablePDRS p => (PDRS -> p) -> PDRS -> IO ()
- showPDRSRefBetaReduct :: ShowablePDRS p => (PDRSRef -> p) -> PDRSRef -> String
- printPDRSRefBetaReduct :: ShowablePDRS p => (PDRSRef -> p) -> PDRSRef -> IO ()
Exported
Show PDRS
class ShowablePDRS p where #
Typeclass for showablePDRSs, that are unresolved.
pdrsResolve :: p -> Int -> Int -> PDRS #
Instances
ShowablePDRS PDRS # | Derive appropriate instances of |
Defined in Data.PDRS.Show | |
ShowablePDRS p => ShowablePDRS (PDRS -> p) # | |
Defined in Data.PDRS.Show | |
ShowablePDRS p => ShowablePDRS (PDRSRef -> p) # | |
Defined in Data.PDRS.Show | |
ShowablePDRS p => ShowablePDRS (PDRSRel -> p) # | |
Defined in Data.PDRS.Show | |
ShowablePDRS p => ShowablePDRS ((PDRSRef -> PDRS) -> p) # | |
Defined in Data.PDRS.Show |
data PDRSNotation p #
PDRS
notations.
Instances
ShowablePDRS p => Show (PDRSNotation p) # | Derive an instance of |
Defined in Data.PDRS.Show showsPrec :: Int -> PDRSNotation p -> ShowS # show :: PDRSNotation p -> String # showList :: [PDRSNotation p] -> ShowS # |
Show Merges
Show Beta Reduction
showPDRSBetaReduct :: ShowablePDRS p => (PDRS -> p) -> PDRS -> String #
Shows the beta reduction of an 'unresolved PDRS' p1
with a PDRS
p2
.
printPDRSBetaReduct :: ShowablePDRS p => (PDRS -> p) -> PDRS -> IO () #
Prints the beta reduction of an 'unresolved PDRS'
p1
with a
PDRS
p2
.
showPDRSRefBetaReduct :: ShowablePDRS p => (PDRSRef -> p) -> PDRSRef -> String #
Shows the beta reduction of an 'unresolved PDRS'
p
with a PDRS
referent r
.
printPDRSRefBetaReduct :: ShowablePDRS p => (PDRSRef -> p) -> PDRSRef -> IO () #
Prints the beta reduction of an 'unresolved PDRS'
p
with a
PDRSRef
r
.
Private
Operators
Notations for showing PDRSs
Showing the subparts of a PDRS
Orphan instances
Show PDRS # | Derive and instance of the Show typeclass for |
ShowablePDRS p => Show (PDRS -> p) # | |
ShowablePDRS p => Show (PDRSRef -> p) # | Derive appropriate instances of |
ShowablePDRS p => Show (PDRSRel -> p) # | |
ShowablePDRS p => Show ((PDRSRef -> PDRS) -> p) # | |