Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- class Diffable a b | a -> b where
- diff :: a -> a -> b
- data DiffResult d
- type T0Diff = DiffResult (Term0 (T DiffResult))
- type F0Diff = DiffResult (Formula0 (T DiffResult) (F DiffResult))
- isSame :: forall t. DiffResult t -> Bool
- diffGenF :: Gen Formula
- diffGenT :: Gen Term
- printSampleDiffs :: IO ()
Documentation
class Diffable a b | a -> b where Source #
Instances
Diffable Term (T DiffResult) Source # | |
Defined in Codec.TPTP.Diff | |
Diffable Formula (F DiffResult) Source # | |
Defined in Codec.TPTP.Diff |
data DiffResult d Source #
Same | Both arguments are the same. |
SameHead d | The arguments are recursive expressions of the same form, but their subterms differ. Return a "decorated" term that shows where the differences are |
Differ d d | The arguments differ and are not of similar form (don't recurse) |
DontCare |
Instances
type T0Diff = DiffResult (Term0 (T DiffResult)) Source #
type F0Diff = DiffResult (Formula0 (T DiffResult) (F DiffResult)) Source #
isSame :: forall t. DiffResult t -> Bool Source #
diffGenF :: Gen Formula Source #
Less random generator for generating formulae suitable for testing diff
printSampleDiffs :: IO () Source #