Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3e31aa326e08
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3625ce7a44f7
Choose a head ref

Commits on Sep 13, 2018

  1. pythonPackages.eth-hash: init at 0.1.14

    (cherry picked from commit c445044)
    jluttine authored and samueldr committed Sep 13, 2018
    Copy the full SHA
    735b1e1 View commit details
  2. pythonPackages.eth-typing: init at 1.1.0

    (cherry picked from commit 541a13c)
    jluttine authored and samueldr committed Sep 13, 2018
    Copy the full SHA
    923a6b2 View commit details
  3. pythonPackages.eth-utils: init at 1.2.0

    (cherry picked from commit 9f8e614)
    jluttine authored and samueldr committed Sep 13, 2018
    Copy the full SHA
    d72f81e View commit details
  4. pythonPackages.rlp: fix build

    (cherry picked from commit f053daf)
    jluttine authored and samueldr committed Sep 13, 2018
    Copy the full SHA
    832dcfd View commit details
  5. pythonPackages.python-u2flib-host: init at 3.0.3

    (cherry picked from commit 38e86a8)
    jluttine authored and samueldr committed Sep 13, 2018
    Copy the full SHA
    f8c8a23 View commit details
  6. pythonPackages.ledgerblue: fix build inputs

    (cherry picked from commit 5c9db2f)
    jluttine authored and samueldr committed Sep 13, 2018
    Copy the full SHA
    ff6e4d0 View commit details
  7. pythonPackage.pymsgbox: init at 1.0.6

    (cherry picked from commit c9bf7f6)
    jluttine authored and samueldr committed Sep 13, 2018
    Copy the full SHA
    825f91b View commit details
  8. pythonPackage.backports-shutil-which: init at 3.5.1

    (cherry picked from commit 80b64a2)
    jluttine authored and samueldr committed Sep 13, 2018
    Copy the full SHA
    91f488c View commit details
  9. pythonPackages.libagent: fix propagatedBuildInputs

    (cherry picked from commit d0ce883)
    jluttine authored and samueldr committed Sep 13, 2018
    Copy the full SHA
    ed0fc7d View commit details
  10. pythonPackage.backports-shutil-which: enable tests

    (cherry picked from commit 8d4afa5)
    Mic92 authored and samueldr committed Sep 13, 2018
    Copy the full SHA
    29f4541 View commit details
  11. nixos: remove unneeded api_key from config

    (cherry picked from commit 049b3a6)
    Signed-off-by: Domen Kožar <domen@dev.si>
    domenkozar committed Sep 13, 2018
    Copy the full SHA
    4fce428 View commit details
  12. datadog: add live process monitoring

    (cherry picked from commit bef541c)
    Signed-off-by: Domen Kožar <domen@dev.si>
    domenkozar committed Sep 13, 2018
    Copy the full SHA
    160eea3 View commit details
  13. nixos: datadog-agent: fix systemd support

    (cherry picked from commit 595ae18)
    Signed-off-by: Domen Kožar <domen@dev.si>
    domenkozar committed Sep 13, 2018
    Copy the full SHA
    cedae2b View commit details
  14. pythonPackages.us: fix build

    Required jellyfish==0.5.6 but we have 0.6.1. Loosen requirements.
    
    (cherry picked from commit a7166cd)
    xeji committed Sep 13, 2018
    Copy the full SHA
    2880ca7 View commit details
  15. pythonPackages.readme_renderer: fix build

    Disable one test case that has failed since last bleach update.
    
    (cherry picked from commit bb1f342)
    xeji committed Sep 13, 2018
    Copy the full SHA
    27159ae View commit details
  16. pythonPackages.pyfakefs: 3.4.1 -> 3.4.3, fix build

    Update and disable some failing test cases
    
    (cherry picked from commit d2a885a)
    xeji committed Sep 13, 2018
    Copy the full SHA
    a700d46 View commit details
  17. pythonPackages.pydub: fix build and tests

    - remove obsolete patch that caused build failure
    - no tests were run because required data files were missing in pypi
      version; use github version instead
    
    (cherry picked from commit 80ecef8)
    xeji committed Sep 13, 2018
    Copy the full SHA
    671205b View commit details
  18. pythonPackages.pydub: remove obsolete patch

    (cherry picked from commit 40c469e)
    xeji committed Sep 13, 2018
    Copy the full SHA
    38f6951 View commit details
  19. pythonPackages.pydub: fix aarch64 build

    one test failed due to rounding errors, disable it
    
    (cherry picked from commit bc03639)
    xeji committed Sep 13, 2018
    Copy the full SHA
    7e47d1a View commit details
  20. pythonPackages.pyfakefs: fix darwin build

    One test failed on darwin due to case-insensitive file system,
    disable it.
    
    (cherry picked from commit bd02a19)
    xeji committed Sep 13, 2018
    Copy the full SHA
    c8b1f54 View commit details
  21. pythonPackages.restview: fix tests

    Failed after readme_renderer was updated. Apply an upstream patch.
    
    (cherry picked from commit 6dc5713)
    xeji committed Sep 13, 2018
    Copy the full SHA
    ae181c3 View commit details
  22. leo-editor: 5.6 -> 5.7.3, fix build (#46589)

    Previous version depended on qt56.qtwebengine which was broken.
    
    (cherry picked from commit eb88142)
    xeji committed Sep 13, 2018
    Copy the full SHA
    17f538b View commit details
  23. syncthing: 0.14.48 -> 0.14.50

    (cherry picked from commit 6400d4b)
    jluttine authored and Mic92 committed Sep 13, 2018
    Copy the full SHA
    1851422 View commit details
  24. wolfssl: enable all features

    (cherry picked from commit 66e6ee7)
    mcmtroffaes authored and Mic92 committed Sep 13, 2018
    Copy the full SHA
    755710d View commit details
  25. tamarin-prover: fix ghc 8.4 build (#46597)

    See https://hydra.nixos.org/build/81125645
    
    `tamarin-prover' upstream has a patch to fix GHC 8.4 compilation (and
    uses stack lts-12.1 now), but it's not released yet:
    
    tamarin-prover/tamarin-prover@a08f6e4
    
    The build is divided in several derivations, therefore the patch had to
    be splitted and rebased for `lib/term', `lib/theory' and `lib/utils' to
    ensure that the patch applies properly during the `patchPhase'.
    
    Addresses #45960
    
    (cherry picked from commit 2cfc0bb)
    Ma27 authored and xeji committed Sep 13, 2018
    Copy the full SHA
    3625ce7 View commit details
Showing with 1,383 additions and 96 deletions.
  1. +17 −1 nixos/modules/services/monitoring/datadog-agent.nix
  2. +4 −13 pkgs/applications/editors/leo-editor/default.nix
  3. +2 −2 pkgs/applications/networking/syncthing/default.nix
  4. +6 −3 pkgs/applications/science/logic/tamarin-prover/default.nix
  5. +109 −0 pkgs/applications/science/logic/tamarin-prover/ghc-8.4-support-term.patch
  6. +130 −0 pkgs/applications/science/logic/tamarin-prover/ghc-8.4-support-theory.patch
  7. +140 −0 pkgs/applications/science/logic/tamarin-prover/ghc-8.4-support-utils.patch
  8. +2 −0 pkgs/development/libraries/wolfssl/default.nix
  9. +24 −0 pkgs/development/python-modules/backports-shutil-which/default.nix
  10. +45 −0 pkgs/development/python-modules/eth-hash/default.nix
  11. +35 −0 pkgs/development/python-modules/eth-typing/default.nix
  12. +35 −0 pkgs/development/python-modules/eth-utils/default.nix
  13. +7 −2 pkgs/development/python-modules/ledgerblue/default.nix
  14. +5 −9 pkgs/development/python-modules/libagent/default.nix
  15. +17 −7 pkgs/development/python-modules/pydub/default.nix
  16. +0 −46 pkgs/development/python-modules/pydub/pyaudioop-python3.patch
  17. +16 −8 pkgs/development/python-modules/pyfakefs/default.nix
  18. +24 −0 pkgs/development/python-modules/pymsgbox/default.nix
  19. +23 −0 pkgs/development/python-modules/python-u2flib-host/default.nix
  20. +2 −1 pkgs/development/python-modules/readme_renderer/default.nix
  21. +10 −0 pkgs/development/python-modules/restview/default.nix
  22. +13 −3 pkgs/development/python-modules/rlp/default.nix
  23. +7 −0 pkgs/development/python-modules/us/default.nix
  24. +2 −1 pkgs/tools/networking/dd-agent/6.nix
  25. +669 −0 pkgs/tools/networking/dd-agent/datadog-process-agent-deps.nix
  26. +26 −0 pkgs/tools/networking/dd-agent/datadog-process-agent.nix
  27. +1 −0 pkgs/top-level/all-packages.nix
  28. +12 −0 pkgs/top-level/python-packages.nix
18 changes: 17 additions & 1 deletion nixos/modules/services/monitoring/datadog-agent.nix
Original file line number Diff line number Diff line change
@@ -8,14 +8,14 @@ let
ddConf = {
dd_url = "https://app.datadoghq.com";
skip_ssl_validation = "no";
api_key = "";
confd_path = "/etc/datadog-agent/conf.d";
additional_checksd = "/etc/datadog-agent/checks.d";
use_dogstatsd = true;
}
// optionalAttrs (cfg.logLevel != null) { log_level = cfg.logLevel; }
// optionalAttrs (cfg.hostname != null) { inherit (cfg) hostname; }
// optionalAttrs (cfg.tags != null ) { tags = concatStringsSep ", " cfg.tags; }
// optionalAttrs (cfg.enableLiveProcessCollection) { process_config = { enabled = "true"; }; }
// cfg.extraConfig;

# Generate Datadog configuration files for each configured checks.
@@ -125,6 +125,13 @@ in {
'';
};

enableLiveProcessCollection = mkOption {
description = ''
Whether to enable the live process collection agent.
'';
default = false;
type = types.bool;
};
checks = mkOption {
description = ''
Configuration for all Datadog checks. Keys of this attribute
@@ -229,6 +236,15 @@ in {
path = [ datadogPkg pkgs.python pkgs.sysstat pkgs.procps pkgs.jdk ];
serviceConfig.ExecStart = "${datadogPkg}/bin/dd-jmxfetch";
});

datadog-process-agent = lib.mkIf cfg.enableLiveProcessCollection (makeService {
description = "Datadog Live Process Agent";
path = [ ];
script = ''
export DD_API_KEY=$(head -n 1 ${cfg.apiKeyFile})
${pkgs.datadog-process-agent}/bin/agent --config /etc/datadog-agent/datadog.yaml
'';
});
};

environment.etc = etcfiles;
17 changes: 4 additions & 13 deletions pkgs/applications/editors/leo-editor/default.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,20 @@
{ stdenv, python3, libsForQt56, fetchFromGitHub, makeWrapper, makeDesktopItem }:
{ stdenv, python3, fetchFromGitHub, makeWrapper, makeDesktopItem }:

let
packageOverrides = self: super: {
pyqt56 = libsForQt56.callPackage ../../../development/python-modules/pyqt/5.x.nix {
pythonPackages = self;
};
};

pythonPackages = (python3.override { inherit packageOverrides; }).pkgs;
in
stdenv.mkDerivation rec {
name = "leo-editor-${version}";
version = "5.6";
version = "5.7.3";

src = fetchFromGitHub {
owner = "leo-editor";
repo = "leo-editor";
rev = version;
sha256 = "1k6q3gvaf05bi0mzkmmb1p6wrgxwri7ivn38p6f0m0wfd3f70x2j";
sha256 = "0ri6l6cxwva450l05af5vs1lsgrz6ciwd02njdgphs9pm1vwxbl9";
};

dontBuild = true;

nativeBuildInputs = [ makeWrapper python3 ];
propagatedBuildInputs = with pythonPackages; [ pyqt56 docutils ];
propagatedBuildInputs = with python3.pkgs; [ pyqt5 docutils ];

desktopItem = makeDesktopItem rec {
name = "leo-editor";
4 changes: 2 additions & 2 deletions pkgs/applications/networking/syncthing/default.nix
Original file line number Diff line number Diff line change
@@ -3,14 +3,14 @@
let
common = { stname, target, patches ? [], postInstall ? "" }:
stdenv.mkDerivation rec {
version = "0.14.48";
version = "0.14.50";
name = "${stname}-${version}";

src = fetchFromGitHub {
owner = "syncthing";
repo = "syncthing";
rev = "v${version}";
sha256 = "10jls0z3y081fq097xarplzv5sz076ibhawzm65bq695f6s5sdzw";
sha256 = "10lilw20mq1zshysb9zrszcpl4slyyxvnbxfqk04nhz0b1gmm9ri";
};

inherit patches;
9 changes: 6 additions & 3 deletions pkgs/applications/science/logic/tamarin-prover/default.nix
Original file line number Diff line number Diff line change
@@ -31,23 +31,26 @@ let
'';

tamarin-prover-utils = mkDerivation (common "tamarin-prover-utils" (src + "/lib/utils") // {
patchPhase = replaceSymlinks;
postPatch = replaceSymlinks;
patches = [ ./ghc-8.4-support-utils.patch ];
libraryHaskellDepends = with haskellPackages; [
base base64-bytestring binary blaze-builder bytestring containers
deepseq dlist fclabels mtl pretty safe SHA syb time transformers
];
});

tamarin-prover-term = mkDerivation (common "tamarin-prover-term" (src + "/lib/term") // {
patchPhase = replaceSymlinks;
postPatch = replaceSymlinks;
patches = [ ./ghc-8.4-support-term.patch ];
libraryHaskellDepends = (with haskellPackages; [
attoparsec base binary bytestring containers deepseq dlist HUnit
mtl process safe
]) ++ [ tamarin-prover-utils ];
});

tamarin-prover-theory = mkDerivation (common "tamarin-prover-theory" (src + "/lib/theory") // {
patchPhase = replaceSymlinks;
postPatch = replaceSymlinks;
patches = [ ./ghc-8.4-support-theory.patch ];
doHaddock = false; # broken
libraryHaskellDepends = (with haskellPackages; [
aeson aeson-pretty base binary bytestring containers deepseq dlist
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
From a08f6e400772899b9b0fc16befc50391cd70696b Mon Sep 17 00:00:00 2001
From: Felix Yan <felixonmars@archlinux.org>
Date: Fri, 18 May 2018 16:24:41 +0800
Subject: [PATCH] GHC 8.4 support

---
src/Term/Maude/Signature.hs | 8 ++--
src/Term/Rewriting/Definitions.hs | 23 ++++++----
src/Term/Unification.hs | 4 +-
11 files changed, 79 insertions(+), 48 deletions(-)

diff --git a/src/Term/Maude/Signature.hs b/src/Term/Maude/Signature.hs
index 98c25d9f..1a4ce82f 100644
--- a/src/Term/Maude/Signature.hs
+++ b/src/Term/Maude/Signature.hs
@@ -104,9 +104,9 @@ maudeSig msig@(MaudeSig {enableDH,enableBP,enableMSet,enableXor,enableDiff=_,stF
`S.union` dhReducibleFunSig `S.union` bpReducibleFunSig `S.union` xorReducibleFunSig

-- | A monoid instance to combine maude signatures.
-instance Monoid MaudeSig where
- (MaudeSig dh1 bp1 mset1 xor1 diff1 stFunSyms1 stRules1 _ _) `mappend`
- (MaudeSig dh2 bp2 mset2 xor2 diff2 stFunSyms2 stRules2 _ _) =
+instance Semigroup MaudeSig where
+ MaudeSig dh1 bp1 mset1 xor1 diff1 stFunSyms1 stRules1 _ _ <>
+ MaudeSig dh2 bp2 mset2 xor2 diff2 stFunSyms2 stRules2 _ _ =
maudeSig (mempty {enableDH=dh1||dh2
,enableBP=bp1||bp2
,enableMSet=mset1||mset2
@@ -114,6 +114,8 @@ instance Monoid MaudeSig where
,enableDiff=diff1||diff2
,stFunSyms=S.union stFunSyms1 stFunSyms2
,stRules=S.union stRules1 stRules2})
+
+instance Monoid MaudeSig where
mempty = MaudeSig False False False False False S.empty S.empty S.empty S.empty

-- | Non-AC function symbols.
diff --git a/src/Term/Rewriting/Definitions.hs b/src/Term/Rewriting/Definitions.hs
index bd942b6a..18562e4e 100644
--- a/src/Term/Rewriting/Definitions.hs
+++ b/src/Term/Rewriting/Definitions.hs
@@ -44,10 +44,12 @@ evalEqual (Equal l r) = l == r
instance Functor Equal where
fmap f (Equal lhs rhs) = Equal (f lhs) (f rhs)

+instance Semigroup a => Semigroup (Equal a) where
+ (Equal l1 r1) <> (Equal l2 r2) =
+ Equal (l1 <> l2) (r1 <> r2)
+
instance Monoid a => Monoid (Equal a) where
mempty = Equal mempty mempty
- (Equal l1 r1) `mappend` (Equal l2 r2) =
- Equal (l1 `mappend` l2) (r1 `mappend` r2)

instance Foldable Equal where
foldMap f (Equal l r) = f l `mappend` f r
@@ -104,14 +106,15 @@ instance Functor Match where
fmap _ NoMatch = NoMatch
fmap f (DelayedMatches ms) = DelayedMatches (fmap (f *** f) ms)

+instance Semigroup (Match a) where
+ NoMatch <> _ = NoMatch
+ _ <> NoMatch = NoMatch
+ DelayedMatches ms1 <> DelayedMatches ms2 =
+ DelayedMatches (ms1 <> ms2)
+
instance Monoid (Match a) where
mempty = DelayedMatches []

- NoMatch `mappend` _ = NoMatch
- _ `mappend` NoMatch = NoMatch
- DelayedMatches ms1 `mappend` DelayedMatches ms2 =
- DelayedMatches (ms1 `mappend` ms2)
-

instance Foldable Match where
foldMap _ NoMatch = mempty
@@ -136,10 +139,12 @@ data RRule a = RRule a a
instance Functor RRule where
fmap f (RRule lhs rhs) = RRule (f lhs) (f rhs)

+instance Monoid a => Semigroup (RRule a) where
+ (RRule l1 r1) <> (RRule l2 r2) =
+ RRule (l1 <> l2) (r1 <> r2)
+
instance Monoid a => Monoid (RRule a) where
mempty = RRule mempty mempty
- (RRule l1 r1) `mappend` (RRule l2 r2) =
- RRule (l1 `mappend` l2) (r1 `mappend` r2)

instance Foldable RRule where
foldMap f (RRule l r) = f l `mappend` f r
diff --git a/src/Term/Unification.hs b/src/Term/Unification.hs
index e1de0163..7ce6bb41 100644
--- a/src/Term/Unification.hs
+++ b/src/Term/Unification.hs
@@ -265,9 +265,11 @@ unifyRaw l0 r0 = do

data MatchFailure = NoMatcher | ACProblem

+instance Semigroup MatchFailure where
+ _ <> _ = NoMatcher
+
instance Monoid MatchFailure where
mempty = NoMatcher
- mappend _ _ = NoMatcher

-- | Ensure that the computed substitution @sigma@ satisfies
-- @t ==_AC apply sigma p@ after the delayed equations are solved.
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
From a08f6e400772899b9b0fc16befc50391cd70696b Mon Sep 17 00:00:00 2001
From: Felix Yan <felixonmars@archlinux.org>
Date: Fri, 18 May 2018 16:24:41 +0800
Subject: [PATCH] GHC 8.4 support

---
src/Theory/Proof.hs | 43 +++++++++++--------
11 files changed, 79 insertions(+), 48 deletions(-)

diff --git a/src/Theory/Constraint/Solver/Reduction.hs b/src/Theory/Constraint/Solver/Reduction.hs
index ddbc965a..6daadd0d 100644
--- a/src/Theory/Constraint/Solver/Reduction.hs
+++ b/src/Theory/Constraint/Solver/Reduction.hs
@@ -139,13 +139,14 @@ execReduction m ctxt se fs =
data ChangeIndicator = Unchanged | Changed
deriving( Eq, Ord, Show )

+instance Semigroup ChangeIndicator where
+ Changed <> _ = Changed
+ _ <> Changed = Changed
+ Unchanged <> Unchanged = Unchanged
+
instance Monoid ChangeIndicator where
mempty = Unchanged

- Changed `mappend` _ = Changed
- _ `mappend` Changed = Changed
- Unchanged `mappend` Unchanged = Unchanged
-
-- | Return 'True' iff there was a change.
wasChanged :: ChangeIndicator -> Bool
wasChanged Changed = True
diff --git a/src/Theory/Constraint/System/Guarded.hs b/src/Theory/Constraint/System/Guarded.hs
index f98fc7c2..2aac8ce2 100644
--- a/src/Theory/Constraint/System/Guarded.hs
+++ b/src/Theory/Constraint/System/Guarded.hs
@@ -435,7 +435,7 @@ gall ss atos gf = GGuarded All ss atos gf

-- | Local newtype to avoid orphan instance.
newtype ErrorDoc d = ErrorDoc { unErrorDoc :: d }
- deriving( Monoid, NFData, Document, HighlightDocument )
+ deriving( Monoid, Semigroup, NFData, Document, HighlightDocument )

-- | @formulaToGuarded fm@ returns a guarded formula @gf@ that is
-- equivalent to @fm@ under the assumption that this is possible.
diff --git a/src/Theory/Proof.hs b/src/Theory/Proof.hs
index 74fb77b1..7971b9fc 100644
--- a/src/Theory/Proof.hs
+++ b/src/Theory/Proof.hs
@@ -388,17 +388,19 @@ data ProofStatus =
| TraceFound -- ^ There is an annotated solved step
deriving ( Show, Generic, NFData, Binary )

+instance Semigroup ProofStatus where
+ TraceFound <> _ = TraceFound
+ _ <> TraceFound = TraceFound
+ IncompleteProof <> _ = IncompleteProof
+ _ <> IncompleteProof = IncompleteProof
+ _ <> CompleteProof = CompleteProof
+ CompleteProof <> _ = CompleteProof
+ UndeterminedProof <> UndeterminedProof = UndeterminedProof
+
+
instance Monoid ProofStatus where
mempty = CompleteProof

- mappend TraceFound _ = TraceFound
- mappend _ TraceFound = TraceFound
- mappend IncompleteProof _ = IncompleteProof
- mappend _ IncompleteProof = IncompleteProof
- mappend _ CompleteProof = CompleteProof
- mappend CompleteProof _ = CompleteProof
- mappend UndeterminedProof UndeterminedProof = UndeterminedProof
-
-- | The status of a 'ProofStep'.
proofStepStatus :: ProofStep (Maybe a) -> ProofStatus
proofStepStatus (ProofStep _ Nothing ) = UndeterminedProof
@@ -560,10 +562,12 @@ newtype Prover = Prover
-> Maybe IncrementalProof -- resulting proof
}

+instance Semigroup Prover where
+ p1 <> p2 = Prover $ \ctxt d se ->
+ runProver p1 ctxt d se >=> runProver p2 ctxt d se
+
instance Monoid Prover where
mempty = Prover $ \_ _ _ -> Just
- p1 `mappend` p2 = Prover $ \ctxt d se ->
- runProver p1 ctxt d se >=> runProver p2 ctxt d se

-- | Provers whose sequencing is handled via the 'Monoid' instance.
--
@@ -579,10 +583,12 @@ newtype DiffProver = DiffProver
-> Maybe IncrementalDiffProof -- resulting proof
}

+instance Semigroup DiffProver where
+ p1 <> p2 = DiffProver $ \ctxt d se ->
+ runDiffProver p1 ctxt d se >=> runDiffProver p2 ctxt d se
+
instance Monoid DiffProver where
mempty = DiffProver $ \_ _ _ -> Just
- p1 `mappend` p2 = DiffProver $ \ctxt d se ->
- runDiffProver p1 ctxt d se >=> runDiffProver p2 ctxt d se

-- | Map the proof generated by the prover.
mapProverProof :: (IncrementalProof -> IncrementalProof) -> Prover -> Prover
@@ -784,15 +790,16 @@ runAutoDiffProver (AutoProver heuristic bound cut) =
-- | The result of one pass of iterative deepening.
data IterDeepRes = NoSolution | MaybeNoSolution | Solution ProofPath

+instance Semigroup IterDeepRes where
+ x@(Solution _) <> _ = x
+ _ <> y@(Solution _) = y
+ MaybeNoSolution <> _ = MaybeNoSolution
+ _ <> MaybeNoSolution = MaybeNoSolution
+ NoSolution <> NoSolution = NoSolution
+
instance Monoid IterDeepRes where
mempty = NoSolution

- x@(Solution _) `mappend` _ = x
- _ `mappend` y@(Solution _) = y
- MaybeNoSolution `mappend` _ = MaybeNoSolution
- _ `mappend` MaybeNoSolution = MaybeNoSolution
- NoSolution `mappend` NoSolution = NoSolution
-
-- | @cutOnSolvedDFS prf@ removes all other cases if an attack is found. The
-- attack search is performed using a parallel DFS traversal with iterative
-- deepening.
Loading