[m-users.] Insts of tuple types?

Volker Wysk post at volker-wysk.de
Mon Aug 7 03:37:53 AEST 2023


Hello.

I have an argument of this type:

    maybe(
        { (pred(io, io)),
          place_data
        }
    )

I need to specify a higher order inst because the first component is a
predicate. What is the inst? This inst doesn't work:

    :: out(
        maybe(
            { pred(di, io) is det,
              ground
            }
        ))

I get this error message:

amend.m:099: In declaration of predicate `amend_new_file_place'/5:
amend.m:099:   error: undefined inst `{}'/2.


Cheers,
Volker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: This is a digitally signed message part
URL: <http://lists.mercurylang.org/archives/users/attachments/20230806/028e9c62/attachment.sig>


More information about the users mailing list