Skip to content

Commit

Permalink
update generics
Browse files Browse the repository at this point in the history
  • Loading branch information
martyall committed Oct 6, 2023
1 parent f3635f7 commit 5f2f48c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/Network/Ethereum/Web3/Solidity/Event.purs
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,6 @@ else instance GArrayParser as => GArrayParser (Constructor name as) where
Tuple a rest <- gArrayParser hxs
pure $ Tuple (Constructor a) rest

else instance ArrayParser as => GArrayParser (Constructor name as) where
gArrayParser hxs = do
Tuple a rest <- arrayParser hxs
pure $ Tuple (Constructor a) rest

--------------------------------------------------------------------------------
-- | Event Parsers
--------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion src/Network/Ethereum/Web3/Solidity/Internal.purs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ instance GRecordFieldsIso NoArguments from from where
gToRecord _ = identity
gFromRecord _ = NoArguments

else instance (IsSymbol name, GRecordFieldsIso a from to, Show (Record to), Show a) => GRecordFieldsIso (Constructor name a) from to where
else instance (IsSymbol name, GRecordFieldsIso a from to, Show (Record to)) => GRecordFieldsIso (Constructor name a) from to where
gToRecord (Constructor a) = gToRecord a
gFromRecord r = Constructor (gFromRecord r)

Expand Down

0 comments on commit 5f2f48c

Please sign in to comment.