Skip to content

Commit

Permalink
Don't doubly generate common PAB types
Browse files Browse the repository at this point in the history
  • Loading branch information
jhbertra committed Jan 26, 2022
1 parent bc52caf commit 3384280
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 0 additions & 2 deletions marlowe-dashboard-client/src/Capability/Wallet.purs
Expand Up @@ -29,8 +29,6 @@ import Marlowe.Run.Wallet.V1 (GetTotalFundsResponse)
import Plutus.V1.Ledger.Tx (Tx)
import Types (AjaxResponse)

-- FIXME: Abstract away AjaxResponse (just return an `m ResponseType` and
-- handle API failures in the concrete Monad instance).
class Monad m <= ManageWallet m where
createWallet
:: WalletNickname
Expand Down
7 changes: 2 additions & 5 deletions marlowe-dashboard-server/tools/PSGenerator.hs
Expand Up @@ -88,11 +88,8 @@ dto = equal . genericShow . argonaut

myTypes :: [SumType 'Haskell]
myTypes =
PSGenerator.Common.ledgerTypes <>
PSGenerator.Common.walletTypes <>
PSGenerator.Common.playgroundTypes <>
-- | `WalletInfo` has no `Eq` instance hence
-- | `CreateResponse` should not have one.
-- `WalletInfo` has no `Eq` instance hence
-- `CreateResponse` should not have one.
[ genericShow . argonaut $ mkSumType @CreateResponse ] <>
( dto <$>
[ mkSumType @StreamToServer,
Expand Down

0 comments on commit 3384280

Please sign in to comment.