[Agda] COMPILED_DATA directive for Maybe

Nils Anders Danielsson nad at Cs.Nott.AC.UK
Mon Nov 23 13:50:09 CET 2009


On 2009-11-22 23:05, Andrés Sicard-Ramírez wrote:
> Any ideas how to define a COMPILED_DATA directive for the (new)
> universe polymorphic datatype Maybe defined in Data.Maybe.Core?

If the universe polymorphism was uniform, then I believe it would be
possible to map all variants of Maybe to the Haskell Maybe type.
However, an Agda program can treat Maybe {zero} and Maybe {suc zero}
differently, so this is not possible. If you want to interoperate with
the Haskell Maybe type, then I suggest that you define a
non-universe-polymorphic variant of Maybe in Foreign.Haskell.

--
/NAD


This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.



More information about the Agda mailing list