Skip to content

Commit

Permalink
Rename Data.Text.Lazy.IO import
Browse files Browse the repository at this point in the history
  • Loading branch information
trchopan committed Apr 13, 2022
1 parent 2716983 commit c35de92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Application/PersistReport.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Application.HistoryBlocks ( HistoryBlocksArgs
import Control.Monad ( forM_ )
import Data.Aeson.Encode.Pretty ( encodePretty )
import Data.Text.Lazy.Encoding ( decodeUtf8 )
import qualified Data.Text.Lazy.IO as I
import qualified Data.Text.Lazy.IO as LIO
import Domain.ArmadaNonce ( ArmadaNonce
( ArmadaNonce
, epochArmadaNonce
Expand Down Expand Up @@ -66,7 +66,7 @@ persistReport fromEpoch filePath (PersistReportArgs blockFrostApi poolId vrfFile
let schedules =
map (\slot -> Schedule slot (slotToTime slot)) leaderSlots
newDbReport = EpochSchedules epoch (length leaderSlots) schedules
I.writeFile (filePath ++ show epoch ++ ".json")
LIO.writeFile (filePath ++ show epoch ++ ".json")
$ decodeUtf8
$ encodePretty newDbReport

Expand Down

0 comments on commit c35de92

Please sign in to comment.