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 |
DRS pretty printing
Synopsis
- class ShowableDRS d where
- drsResolve :: d -> Int -> Int -> DRS
- data DRSNotation d
- showDRS :: DRSNotation DRS -> String
- printDRS :: DRS -> IO ()
- showMerge :: DRS -> DRS -> String
- printMerge :: DRS -> DRS -> IO ()
- showDRSBetaReduct :: ShowableDRS d => (DRS -> d) -> DRS -> String
- printDRSBetaReduct :: ShowableDRS d => (DRS -> d) -> DRS -> IO ()
- showDRSRefBetaReduct :: ShowableDRS d => (DRSRef -> d) -> DRSRef -> String
- printDRSRefBetaReduct :: ShowableDRS d => (DRSRef -> d) -> DRSRef -> IO ()
- opNeg :: String
- opImp :: String
- opOr :: String
- opDiamond :: String
- opBox :: String
- opLambda :: String
- boxTopLeft :: Char
- boxTopRight :: Char
- boxBottomLeft :: Char
- boxBottomRight :: Char
- boxMiddleLeft :: Char
- boxMiddleRight :: Char
- boxHorLine :: Char
- boxVerLine :: Char
- showConcat :: String -> String -> String
- showContent :: Int -> String -> String
- showHorizontalLine :: Int -> Char -> Char -> String
- showModifier :: String -> Int -> String -> String
- showPadding :: String -> String
Exported
Show DRS
class ShowableDRS d where #
Typeclass for showableDRSs, that are unresolved.
drsResolve :: d -> Int -> Int -> DRS #
Instances
ShowableDRS DRS # | Derive appropriate instances of |
Defined in Data.DRS.Show | |
ShowableDRS d => ShowableDRS (DRS -> d) # | |
Defined in Data.DRS.Show | |
ShowableDRS d => ShowableDRS (DRSRef -> d) # | |
Defined in Data.DRS.Show | |
ShowableDRS d => ShowableDRS (DRSRel -> d) # | |
Defined in Data.DRS.Show | |
ShowableDRS d => ShowableDRS ((DRSRef -> DRS) -> d) # | |
Defined in Data.DRS.Show |
data DRSNotation d #
DRS
notations.
Instances
ShowableDRS d => Show (DRSNotation d) # | Derive an instance of Show for |
Defined in Data.DRS.Show showsPrec :: Int -> DRSNotation d -> ShowS # show :: DRSNotation d -> String # showList :: [DRSNotation d] -> ShowS # |
Show Merge
Show Beta Reduction
showDRSBetaReduct :: ShowableDRS d => (DRS -> d) -> DRS -> String #
Shows the beta reduction of an 'unresolved DRS' d1
with a DRS
d2
.
printDRSBetaReduct :: ShowableDRS d => (DRS -> d) -> DRS -> IO () #
Prints the beta reduction of an 'unresolved DRS' d1
with a DRS
d2
.
showDRSRefBetaReduct :: ShowableDRS d => (DRSRef -> d) -> DRSRef -> String #
Shows the beta reduction of an 'unresolved DRS' d
with a DRSRef
r
.
printDRSRefBetaReduct :: ShowableDRS d => (DRSRef -> d) -> DRSRef -> IO () #
Prints the beta reduction of an 'unresolved DRS' d
with a DRSRef
r
.
Operators
Box Construction
boxTopLeft :: Char #
Top left corner symbol
boxTopRight :: Char #
Top right corner symbol
boxBottomLeft :: Char #
Bottom left corner symbol
boxBottomRight :: Char #
Bottom right corner symbol
boxMiddleLeft :: Char #
Middle left corner symbol
boxMiddleRight :: Char #
Middle right corner symbol
boxHorLine :: Char #
Horizontal line symbol
boxVerLine :: Char #
Vertical line symbol
showHorizontalLine :: Int -> Char -> Char -> String #
Shows a horizontal line of length l
with left corner symbol lc
and
right corner symbol rc
.
showModifier :: String -> Int -> String -> String #
Shows a modifier m
at line number p
in front of String
s
.
showPadding :: String -> String #
Adds two lines of whitespace to the beginning of String
s
.
Private
Notations for showing DRSs
Showing the subparts of a DRS
Orphan instances
Show DRS # | |
ShowableDRS d => Show (DRS -> d) # | |
ShowableDRS d => Show (DRSRef -> d) # | Derive appropriate instances of |
ShowableDRS d => Show (DRSRel -> d) # | |
ShowableDRS d => Show ((DRSRef -> DRS) -> d) # | |