Skip to content

PlutusTx.Foldable.foldMap, PlutusTx.AssocMap.<> and PlutusTx.AssocMap.mempty are non INLINEABLE #7512

@paluh

Description

@paluh

Hello,

It seems that foldMap become non INLINEABLE when it was moved out from the Foldable class into a stand alone function. Here is the current version:

https://github.com/IntersectMBO/plutus/blob/master/plutus-tx/src/PlutusTx/Foldable.hs#L86

The other two mentioned instances in the title for AssocMap provide instance without INLINEABLE pragmas:

instance (Eq k, Semigroup v) => Semigroup (Map k v) where

All the above cause hard to digest and unexpected (at least to me) errors.

If those are bugs they could be rather easily catched if they were compiled using Plutus plugin template Haskell.

Could you please tell me if all those missing prgmas are deliberate?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions