Skip to content

Commit

Permalink
Feat 28: GHC v9.2.8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabhxyz committed Jun 27, 2023
1 parent 33d2a4d commit d8ac20f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
9 changes: 9 additions & 0 deletions maestro-exe/Maestro/Run/General.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module Maestro.Run.General where

import Maestro.Client
import Text.Printf (printf)

runGeneralAPI :: MaestroEnv -> IO ()
runGeneralAPI mEnv = do
chainTip <- getChainTip mEnv
printf "Querying chain-tip, received: ⮯\n%s\n" (show chainTip)
2 changes: 2 additions & 0 deletions maestro-exe/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import qualified Data.Text as T
import Maestro.Client.Env
import Maestro.Run.Datum
import Maestro.Run.Epochs
import Maestro.Run.General
import Maestro.Run.Pools
import Maestro.Run.Scripts
import Maestro.Run.Tx
Expand All @@ -20,6 +21,7 @@ main = do
runEpochsAPI env
runDatumAPI env
runScriptsAPI env
runGeneralAPI env

where
maestroKey = getEnv "MAESTRO_API_KEY"
8 changes: 5 additions & 3 deletions maestro-sdk.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ build-type: Simple
category: Blockchain, Cardano, SDK, API, REST
extra-doc-files: CHANGELOG.md
extra-source-files: README.md
tested-with: GHC == 8.10.7, GHC == 9.2.8

source-repository head
type: git
Expand Down Expand Up @@ -78,7 +79,7 @@ library
-- other-modules:
-- other-extensions:
build-depends:
, base ^>=4.14.3.0
, base >= 4.14.3.0 && < 4.19
, bytestring
, aeson
, containers
Expand Down Expand Up @@ -111,7 +112,7 @@ test-suite maestro-sdk-tests
Maestro.Test.Transaction

build-depends:
base ^>=4.14.3.0
base
, maestro-sdk
, aeson
, bytestring
Expand All @@ -129,6 +130,7 @@ executable maestro-exe
default-language: Haskell2010
other-modules:
Maestro.Run.Datum
Maestro.Run.General
Maestro.Run.Pools
Maestro.Run.Scripts
Maestro.Run.Tx
Expand All @@ -137,6 +139,6 @@ executable maestro-exe
hs-source-dirs: maestro-exe
main-is: Main.hs
build-depends:
base ^>=4.14.3.0,
base,
maestro-sdk,
text

0 comments on commit d8ac20f

Please sign in to comment.