Skip to content

Commit

Permalink
Update to GHC 9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
arcz committed Oct 19, 2023
1 parent 31c187b commit efde735
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 17 deletions.
19 changes: 10 additions & 9 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 6 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs";
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
Expand Down Expand Up @@ -46,12 +46,15 @@
sha256 = "sha256-H6oURBGoQWSOuPhBB+UKg2UarVzXgv1tmfDBLnOtdhU=";
}) { secp256k1 = pkgs.secp256k1; });

echidna = with pkgs; lib.pipe
# FIXME: figure out solc situation, it conflicts with the one from
# solc-select that is installed with slither, disable tests in the meantime
echidna = pkgs.haskell.lib.dontCheck (
with pkgs; lib.pipe
(haskellPackages.callCabal2nix "echidna" ./. { inherit hevm; })
[
(haskell.lib.compose.addTestToolDepends [ haskellPackages.hpack slither-analyzer solc ])
(haskell.lib.compose.disableCabalFlag "static")
];
]);
in rec {
packages.echidna = echidna;
packages.default = echidna;
Expand Down
2 changes: 1 addition & 1 deletion lib/Echidna/UI.hs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ ui vm world dict initialCorpus = do
, now = now
, fetchedContracts = mempty
, fetchedSlots = mempty
, fetchedDialog = B.dialog (Just " Fetched contracts/slots ") Nothing 80
, fetchedDialog = B.dialog (Just $ str " Fetched contracts/slots ") Nothing 80
, displayFetchedDialog = False
, workerEvents = mempty
, corpusSize = 0
Expand Down
6 changes: 3 additions & 3 deletions lib/Echidna/UI/Widgets.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module Echidna.UI.Widgets where

#ifdef INTERACTIVE_UI

import Brick
import Brick hiding (style)
import Brick.AttrMap qualified as A
import Brick.Widgets.Border
import Brick.Widgets.Center
Expand Down Expand Up @@ -43,7 +43,7 @@ data UIState = UIState
, now :: LocalTime
, fetchedContracts :: Map Addr (Maybe Contract)
, fetchedSlots :: Map Addr (Map W256 (Maybe W256))
, fetchedDialog :: B.Dialog ()
, fetchedDialog :: B.Dialog () Name
, displayFetchedDialog :: Bool

, workerEvents :: Seq (Int, LocalTime, CampaignEvent)
Expand Down Expand Up @@ -222,7 +222,7 @@ perfWidget uiState =
ppSeed :: [WorkerState] -> String
ppSeed campaigns = show (head campaigns).genDict.defSeed

fetchedDialogWidget :: UIState -> Widget n
fetchedDialogWidget :: UIState -> Widget Name
fetchedDialogWidget uiState =
B.renderDialog uiState.fetchedDialog $ padLeftRight 1 $
foldl (<=>) emptyWidget (Map.mapWithKey renderContract uiState.fetchedContracts)
Expand Down
2 changes: 1 addition & 1 deletion stack.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-20.17
resolver: lts-21.3

packages:
- '.'
Expand Down

0 comments on commit efde735

Please sign in to comment.