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 Jul 17, 2023
1 parent f4dfed2 commit 36657d5
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 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.

2 changes: 1 addition & 1 deletion 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/haskell-updates";
flake-utils.url = "github:numtide/flake-utils";
flake-compat = {
url = "github:edolstra/flake-compat";
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 36657d5

Please sign in to comment.